QuickJS Debug for VS CodeThis is a VS Code debug adapter for QuickJS. QuickJS Debugger supports stepping, continue, breakpoints, evaluation, and variable access. The official QuickJS release does not have any debugger support. The QuickJS Debugger requires a forked version of QuickJS, that has minimal changes necessary to support debugging. Using QuickJS Debug
You can now step through the EmbeddingTo listen for a connection in embedded quickjs (attach + connect with vscode debugger):
To initiate a connection in embedded quickjs (attach + listen with vscode debugger):
Alternatively, provide one of the following environment variables before starting the process embedded with QuickJS:
Using these methods will block execution until the debugger has attached. QuickJS does not provide an event loop, so the debugger should (optionally, but recommended) be periodically called from your event loop to check for messages. Otherwise, debugger messages may go unhandled until the next time Javascript is invoked. This can be done with:
ProtocolProtocol documentation is here. |