-
Notifications
You must be signed in to change notification settings - Fork 28.8k
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
V 1.88 - cannot debug typescript #209785
Comments
I'm not sure if it's the same issue, but as of 1.88.0, using the "Debug: Attach to node process" appears to be putting the wrong node process into debug mode (thus occupying port 9229 and preventing me from attaching to the one I want to). I am finding the process by pid to attach to, so am confident that there is no mistake in the process selection. This issue is not present in the prior 1.87.2 release, as my colleague @gilles-yvetot was able to confirm by downgrading to that version. |
/gifPlease |
Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording ( Happy coding! |
Had some trouble with the gif capture, so I just have screenshots but hopefully they demonstrate the issue I'm seeing. What I set up to repro this is two scripts that just report their pid and then sleep in a while loop.
This seems to only reproduce when I am trying to attach to the lower numbered pid process, with the higher numbered one getting attached to incorrectly. If I separately send a |
HI there, I tried to prepare a repository with 2 debug configurations here: https://github.com/lamuertepeluda/node-typescript-boilerplate. It's just this popular boilerplate repository with a couple of minor changes and 2 debugging configurations, 1 with ts build and the other with ts-node. Yesterday, since I was having this issue (debugger not stopping at breakpoints on any TS project) I had to roll back to 1.87.2, which allowed me to keep working on my tasks. I turned off automatic updates and installed 1.87.2 from this link. However (and it's odd) after upgrading to 1.88 today to check the issue on the above repository, I am not having the issue anymore 😕 . I did the install manually from within VS Code. Now I have this version
Hope this is helpful. |
I've encountered the same issue on 1.88, downgrading to 1.87 fixed it. |
@lamuertepeluda are you using nvm on your computer? |
Nope, I am using Volta. |
This is happening to me, and I am using nvm |
Volta might have the same issue. A fix will go out in VS Code tomorrow: that's tracked by #209693 Will wait for the original reporter to respond before duplicating this... |
I am still seeing the incorrect process get attached to on
Should I create a separate issue for this? |
Yes, your issue is unrelated |
same error here using nvm & jest runner |
@SergioSuarezDev please update VS Code, your issue is already fixed. Closing this one as we've not heard back from the reporter. |
Type: Bug
With V 1.87 I could simply set a breakpoint in my code, hit F5 and the debugger would connect and halt at the breakpoint.
With V 1.88 the debugger simply starts and finishes.
The terminal output on V 1.87 shows this:
toby@Tobys-Air-839 SCCCCManagement % cd /Users/toby/Development/GAS/SCCCCManagement ; /usr/bin/env 'NODE_OPTIONS= --require "/private/var/folders/1h/pw0_z_2j5ls_kqyv4vmff1yr0000gn/T/AppTranslocation/D8A00A47-CB44-4C99-A451-
6848AF42CC14/d/Visual Studio Code-2.app/Contents/Resources/app/extensions/ms-vscode.js-debug/src/bootloader.js" --inspect-publish-uid=http' 'VSCODE_INSPECTOR_OPTIONS=:::{"inspectorIpc":"/var/folders/1h/pw0_z_2j5ls_kqyv4vmff
1yr0000gn/T/node-cdp.16517-36dc00fb-4.sock","deferredMode":false,"waitForDebugger":"","execPath":"/Users/toby/.nvm/versions/node/v20.11.1/bin/node","onlyEntrypoint":false,"autoAttachMode":"always","fileCallback":"/var/folder
s/1h/pw0_z_2j5ls_kqyv4vmff1yr0000gn/T/node-debug-callback-3283da71efafc2ee"}' /Users/toby/.nvm/versions/node/v20.11.1/bin/node ./node_modules/mocha/bin/_mocha -r ts-node/register --timeout 999999 --colors /Users/toby/Develop
ment/GAS/SCCCCManagement/test/**/*.ts
Debugger attached.
But for 1.88 it just shows this:
/Users/toby/.nvm/versions/node/v20.11.1/bin/node ./node_modules/mocha/bin/_mocha -r ts-node/register --timeout 999999 --colors /Users/toby/Development/GAS/SCCCCManagement/test/**/*.ts
Debugger attached.
Waiting for the debugger to disconnect...
VS Code version: Code 1.88.0 (5c3e652, 2024-04-03T13:28:18.899Z)
OS version: Darwin x64 23.4.0
Modes:
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_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (29)
A/B Experiments
The text was updated successfully, but these errors were encountered: