Open omg1492 opened 2 years ago
@omg1492 thanks for the thorough report. I'm rebuilding a Windows 11 VM to test this scenario. I'll be honest, most of the development and testing is happening on Linux, so I have slacked a bit there.
Likewise, I'll keep you posted as I'll go over the issue.
@omg1492 it seems that there's a behavior change in graal debugger. The inspect will always require a port, plus breaking at start now seems to be true by default which makes the properties used by es4x to misbehave.
I'll tag this issue as a bug and continue debugging. We will need to update the docs to be explicit.
The latest release 0.16.3 fixed the start of the debugger however there's a regression on Graal that doesn't show any sources so breakpoints don't work at the moment. I'm fixing this and reporting upstream
For reasons, the supported way to debug is using chrome-debugger
. This means that the docs should be updated to avoid the old ways.
I understood that:
> npm start -- "-Dinspect=9229"
...
> es4x "-Dinspect=9229"
Debugger listening on ws://127.0.0.1:9229/1lYV1xLfKwru5q2p5GkYXka0qcpQ5MPPGjeGCxDmxdU For help, see: https://www.graalvm.org/tools/chrome-debugger E.g. in Chrome open: devtools://devtools/bundled/js_app.html?ws=127.0.0.1:9229/1lYV1xLfKwru5q2p5GkYXka0qcpQ5MPPGjeGCxDmxdU Debugger listening on ws://127.0.0.1:9229/Ml8-a239vruocIQX1HOvfibUk0di-18xDVcNHg7nScs For help, see: https://www.graalvm.org/tools/chrome-debugger E.g. in Chrome open: devtools://devtools/bundled/js_app.html?ws=127.0.0.1:9229/Ml8-a239vruocIQX1HOvfibUk0di-18xDVcNHg7nScs Server started on port 3000 Succeeded in deploying verticle
- _Debug from VSCode_ is obsolete, old way, and will be removed from doc.
OK?
I've been looking at this. It seems that the builtin debugger doesn't fully work anymore with the vscode default debugger.
I've updated the docs. There are 2 way of debugging:
I've updated the vscode command to generate this config now. Here's the config:
{
"version" : "0.2.0",
"configurations" : [ {
"name" : "Launch empty-project",
"type" : "graalvm",
"request" : "attach",
"port" : 9229
} ]
}
I'd like to start with ES4X, so I tried to debug Hello World example following steps on https://reactiverse.io/es4x/get-started/debug.html#debug. It looks like doc is outdated and does not help user to start debugging.
My environment:
Scaffolding Hello World app:
Test from another
cmd
window:Steps to reproduce:
Server started on port 3000 Succeeded in deploying verticle
Might relate to #432