I'm trying to debug my javascript code with the VSCode debugger.
I have constructed my engine with the following code:
_engine = new V8ScriptEngine(V8ScriptEngineFlags.EnableDebugging, 9222);
And added the following to my launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to ClearScript V8 on port 9222",
"type": "node",
"request": "attach",
"protocol": "inspector",
"address": "localhost",
"port": 9222
}
]
}
After starting my C# application and starting the debugger in vscode I try to set some breakpoints in javascript. But the breakpoints are not being verified (not turning red). If I then trigger the debugger with the following line:
VSCode breaks on that line as expected. From that moment on I can successfully place and trigger breakpoints in VSCode, they are also being verified (turning red). But at any point before triggering that first debugger statement, no breakpoints are being verified.
I'm trying to debug my javascript code with the VSCode debugger.
I have constructed my engine with the following code:
And added the following to my launch.json:
{ "version": "0.2.0", "configurations": [ { "name": "Attach to ClearScript V8 on port 9222", "type": "node", "request": "attach", "protocol": "inspector", "address": "localhost", "port": 9222 } ] }After starting my C# application and starting the debugger in vscode I try to set some breakpoints in javascript. But the breakpoints are not being verified (not turning red). If I then trigger the debugger with the following line:
VSCode breaks on that line as expected. From that moment on I can successfully place and trigger breakpoints in VSCode, they are also being verified (turning red). But at any point before triggering that first debugger statement, no breakpoints are being verified.