-
Notifications
You must be signed in to change notification settings - Fork 280
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
stopOnEntry doesn't work #1333
Comments
Just to clarify you are using code-server here? |
yes |
I don't think the code-server label is correct on this one. Can you share a gif of what you're seeing/trying to do? https://gifcap.dev/ is helpful. |
ok, i created a gif and an simple program https://github.com/oweitman/remotetest First i start the debugging in vs code, but nothing stops
Next i start the debugging from shell with the remote option what can i check further? |
thank you for accepting as bug. |
@oweitman Could you also grab some trace logs using these instructions?
|
here it is |
is the info sufficient? |
It appears that Node.js on the remote machine is not properly reaching or respecting the environment variables set for it by the debugger. How was it installed? Is |
which node replies a search for executable node returned this
3 of the 5 vscode-nodes are version v16.13.2 is there a command that i can execute in a certan path to see which wrong environment node uses? |
If you have your |
here it is. the /home/olinuc/.vscode-server/bin/74b1f979648cc44d385a2286793c226e611f59e7/node was isntalled right now und has the version v16.14.2 {
"MAIL": "/var/mail/olinuc",
"USER": "olinuc",
"SSH_CLIENT": "192.168.1.226 51001 22",
"XDG_SESSION_TYPE": "tty",
"SHLVL": "0",
"HOME": "/home/olinuc",
"OLDPWD": "/home/olinuc/.vscode-server/bin/74b1f979648cc44d385a2286793c226e611f59e7",
"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/1000/bus",
"LOGNAME": "olinuc",
"_": "/home/olinuc/.vscode-server/bin/74b1f979648cc44d385a2286793c226e611f59e7/node",
"XDG_SESSION_CLASS": "user",
"XDG_SESSION_ID": "63399",
"PATH": "/home/olinuc/.vscode-server/bin/74b1f979648cc44d385a2286793c226e611f59e7/bin/remote-cli:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games",
"XDG_RUNTIME_DIR": "/run/user/1000",
"LANG": "de_DE.UTF-8",
"SHELL": "/bin/bash",
"PWD": "/home/olinuc",
"SSH_CONNECTION": "192.168.1.226 51001 192.168.1.61 22",
"LS_COLORS": "",
"BROWSER": "/home/olinuc/.vscode-server/bin/74b1f979648cc44d385a2286793c226e611f59e7/bin/helpers/browser.sh",
"NODE_OPTIONS": "--require /home/olinuc/.vscode-server/bin/74b1f979648cc44d385a2286793c226e611f59e7/extensions/ms-vscode.js-debug/src/bootloader.bundle.js --inspect-publish-uid=http",
"VSCODE_INSPECTOR_OPTIONS": "{\"inspectorIpc\":\"/tmp/node-cdp.32033-1.sock\",\"deferredMode\":false,\"waitForDebugger\":\"\",\"execPath\":\"/usr/local/bin/node\",\"onlyEntrypoint\":false,\"autoAttachMode\":\"always\",\"mandatePortTracking\":true,\"fileCallback\":\"/tmp/node-debug-callback-8ca00b62cf11d4d5\"}"
} |
That looks correct, but it seems our NODE_OPTIONS are not getting respected. Do you have capabilities set on the Node.js binary? This can cause issues nodejs/node#37588
Yes, it looks like the issue is Node.js is not parsing the environment variables that are used to force it into debug mode. Launching the program with |
i am not aware, if i set it long time ago if i check the capabilities I only had to set capabilities for some docker containers, but normally I didn't have to use them on first scan of should i change it? to which? |
You can run |
thank you. that was the solution |
Issue Type: Bug
vs code didnt start debug after the node program on remote server is executed.
port 9229 is forwarded from remote to local
if i close vs code and try it with chrome://inspect in the crhome browser. the debug session is shown and i can start it
Extension version: 0.84.0
VS Code version: Code 1.69.1 (b06ae3b2d2dbfe28bca3134cc6be65935cdfea6a, 2022-07-12T08:21:24.514Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
Remote OS version: Linux x64 4.19.0-18-amd64
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: