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

Debugging through a CLI #148

Closed
jeromegn opened this issue Aug 30, 2018 · 0 comments
Closed

Debugging through a CLI #148

jeromegn opened this issue Aug 30, 2018 · 0 comments

Comments

@jeromegn
Copy link
Member

With the coming switch to Rust + ChakraCore comes a clearer and more flexible interface for debugging JavaScript. In constrast, V8's debugging interface is not very well documented and only works in Chrome or Opera (there's also an API built in C++ that works with JSON message passing, but it's a bit hard to use, not very well documented.)

ChakraCore offers a pretty simple API for debugging, it would be possible to use it directly from the CLI.

Features:

  • (likely) debugger statements allows for debugging, somehow.
  • (hard-ish) Interactive CLI for stepping through the stack, printing values, evaluating code
  • (possibly) Add an option to automatically launch a debugger if there's an uncaught exception

Fun side effect: ChakraCore has something called "Time Travel Debugging". It allows you to step back instead of only stepping forward.

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

No branches or pull requests

2 participants