Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run a script step by step? #11

Open
ngocdaothanh opened this issue Oct 17, 2019 · 1 comment
Open

How to run a script step by step? #11

ngocdaothanh opened this issue Oct 17, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@ngocdaothanh
Copy link

esper:
https://github.com/codecombat/esper.js

has the feature that allows running a script step by step (see the step function):
https://esper.js.org/docs/class/src/Engine.js~Engine.html

With ts-evaluator, how to a script step by step?

@wessberg wessberg added the enhancement New feature or request label Nov 9, 2019
@wessberg
Copy link
Owner

wessberg commented Nov 9, 2019

Hi there.
ts-evaluator currently don't have a step function, rather the internal representation of what might be considered a step function is called automatically for each statement.

That said, it would be relatively easy to expose and a good idea, so I'll mark this as a feature request.

For now, you can use the (reporting callbacks](https://github.com/wessberg/ts-evaluator#reporting) to get some hooks into the evaluation process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants