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

Support for stepped execution? #6

Open
djMax opened this issue Jan 28, 2019 · 11 comments
Open

Support for stepped execution? #6

djMax opened this issue Jan 28, 2019 · 11 comments
Assignees
Labels
enhancement New feature or request

Comments

@djMax
Copy link

djMax commented Jan 28, 2019

Is it possible to step through execution (to form the basis for a debugger)?

@Siubaak
Copy link
Owner

Siubaak commented Feb 28, 2019

A little bit difficult. Actually debugger statement is supported, but I just found there's a bug of the minimized version and I will fix it soon.

@Siubaak Siubaak self-assigned this Mar 8, 2019
@Siubaak Siubaak added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Mar 8, 2019
@Siubaak
Copy link
Owner

Siubaak commented Mar 14, 2019

Debugger statement has fixed for minimized version. I will try to add a step method for executing the code step by step in the future.

@bedney
Copy link

bedney commented Mar 14, 2019

@Siubaak - Adding a mechanism for step-by-step execution (along with a callback API to process after each step operation and some API to examine locals on the stack, etc) would make this project very, very useful to me. I am trying to build a lite version of the Chrome DevTools debugging environment, so you can imagine what type of API I would need to introspect the stack, locals, etc. as the user steps.

Thank you for this cool project! :-)

@Siubaak
Copy link
Owner

Siubaak commented Apr 22, 2019

I found a repo that may meet you guys requirement
https://github.com/jlongster/unwinder
https://github.com/amasad/debugjs

@carloslfu
Copy link

JS-Interpreter by @NeilFraser is the best one I have found for stepped execution.

@zamber
Copy link

zamber commented Apr 9, 2020

@carloslfu, JS-Interpreter only supports ES5 and you would have to transpile :/. Also the API is not as pleasant as with sval.

@ghost
Copy link

ghost commented May 10, 2020

Is there any update here?

@beetaa
Copy link

beetaa commented Apr 2, 2021

Is there any update here? +1

@ptatoChi
Copy link

Can I debug sval executed scripts in the chrome dev tools?

@scgm0
Copy link

scgm0 commented Mar 11, 2022

这里是否有任何更新?+2

@Siubaak
Copy link
Owner

Siubaak commented Sep 14, 2022

Currently I don't have spare time to finish this feature.

If you guys want to step through execution or debug scripts in browser/node.js/jscore... environment, highly recommend vDebugger. And it has a higher performance than Sval. @beetaa @ShotiQ @scgm0 @bedney @djMax

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

8 participants