microsoft / microsoft/vscode

Debugger auto attach no longer works with Node.js

Open
#336,743 0 comments 0 reactions 1 assignee Assigned to @connor4312 View on GitHub
new release
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Type: Bug

1. Create the following script and set a breakpoint.
```js
console.log("1");
console.log("2");
console.log("3");
```
1. Set auto attach filter setting to `always` and run the script with `node --inspect` in a debug terminal. (We are doing things kind of in triplicate here to be sure that _something_ would make the debugger attach.)
1. The script will run without the debugger attaching.

In the past, I didn't even have to mess with settings or use `--inspect`. Running something in the debug terminal would always simply attach the debugger.

Also... there is no "Node: Auto Attach" setting as mentioned in the filter setting:

https://github.com/user-attachments/assets/587fec70-56a4-4f99-a538-c883315f7d52

VS Code version: Code 1.138.0 (7debcd0e2acdea1c52de81bf9ee1620444407dda, 2026-09-15T07:24:32Z)
OS version: Linux x64 7.0.0-31-generic
Modes:

System Info

|Item|Value|
|---|---|
|CPUs|AMD Ryzen 9 9950X 16-Core Processor (32 x 3017)|
|GPU Status|2d_canvas: enabled
GPU0: VENDOR= 0x1002, DEVICE=0x13c0, DRIVER_VENDOR=Mesa, DRIVER_VERSION=25.2.8 *ACTIVE*
GPU1: VENDOR= 0x10de, DEVICE=0x2d04
Machine model name:
Machine model version:
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
trees_in_viz: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgpu: enabled
webgpu_on_vk_via_gl_interop: disabled_off
webnn: disabled_off|
|Load (avg)|1, 0, 1|
|Memory (System)|60.47GB (41.14GB free)|
|Process Argv|--crash-reporter-id 59b4689a-d393-490b-82d5-b023ae985a46|
|Screen Reader|no|
|VM|24%|
|DESKTOP_SESSION|cinnamon|
|XDG_CURRENT_DESKTOP|X-Cinnamon|
|XDG_SESSION_DESKTOP|cinnamon|
|XDG_SESSION_TYPE|x11|
Extensions (8)

Name|Identifier|Author|Version
---|---|---|---
TypeScript + Webpack Problem Matchers|amodio.tsl-problem-matcher|amodio|0.6.2
Catalog Lens|antfu.pnpm-catalog-lens|antfu|1.0.2
GitLens — Git supercharged|eamodio.gitlens|eamodio|19.2.0
Playwright Test for VSCode|ms-playwright.playwright|ms-playwright|1.1.19
Dev Containers|ms-vscode-remote.remote-containers|ms-vscode-remote|0.469.0
Oxc|oxc.oxc-vscode|oxc|1.61.0
Devcontainer Open Containing Folder|s-h-a-d-o-w.devcontainer-open-containing-folder|s-h-a-d-o-w|1.0.3
Serenade|serenade.serenade|serenade|1.5.3

A/B Experiments

```
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
envsactivate1:31551504
478i5457:31544283
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ddidtcf:31399634
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
8hhj4413:31478653
cp_cls_c_1081:31454833
conptydll_true:31498968
e9c30283:31461165
46204921:31447328
capico_axe_098a3278:31582664
ei9d7968:31496641
chat:31457767
8hig5102:31480529
89g7j272:31518289
i2gc6536:31499202
52612955:31516516
ddid_t:31478206
hmra_i5g22:31518061
l_j1ci3728:31580635
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
j0d79568:31499440
jb_cp_cls_t_632:31543129
56dj4588:31512888
32d76977:31512328
ha629193:31508444
jh5f2457_c:31540921
jbcp_cls_pctr_t:31531130
cp_intellij_t_nes:31548657
gf14b233:31526830
ahp-both-windows:31556933
ihg5j128:31534457
7g2b5551:31542111
sandbox-ui-on-2:31543161
enable_editor_pane_layout:31569726
allow-none:31555437
36h42362:31564511
c7c27ce7:31554789
1h923230:31564177
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
0d8dfbc3:31570291
switchtoauto:31559321
0c1h4866:31566224
session-mark-done:31558131
5b8j3302:31564601
autotiers:31584978
mangle-name-control:31572633
signed-out-control:31584138
intellij_nes_preview_t:31580086
multiv2:31574985
2bfb8b39:31585911
accent:31581110
aw-autom-on:31583758
revealsession_control_7ed7e840:31582193
7g328426_fixed:31584544
codex-agent-host-stable-control:31585316
0485115c-2712-4002-b6e9-b5d4e30fb963:31586114
permission_prompt_control:1332567
ccr_pr_nudge_control:1319470
vsc_wsm_t:1340632
cfee5631:1379228
3aced641:1389836

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.