Skip to content
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

Debugger Breakpoints not being honored #236107

Closed
brooneyredwood opened this issue Dec 13, 2024 · 4 comments
Closed

Debugger Breakpoints not being honored #236107

brooneyredwood opened this issue Dec 13, 2024 · 4 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@brooneyredwood
Copy link

Type: Bug

The Microsoft VSCode Debugger is not honoring the breakpoints or debugger lines when attempting to debug a javascript file. The debugger skips past the breakpoints and debugger lines and simply runs the entire file.

I tried these same configs on other computers and they worked without issue. I have since restarted my computer several times. I have also installed VSCode Insiders, which would be a fresh install, and saw the issue happening there as well. I created a new npm project and attempted to debug the most basic js file there and also saw same issues. Stack overflow, ChatGPT and Co-Pilot all gave many recommendations to try which all resulted in similar results. The only thing that seems to be working is when debugging in chrome dev tools via a web-sockets connection.

An example of the output that is sent to the VSCode integrated terminal when debugging is below. The below ran with the trace option turned on for extra logs. You can see the last portion says 'This is a Test', which is a console statement at the end of the file attempting to be debugged.

cd c:\Users\brooney\Downloads\debugIssue ; /usr/bin/env 'NODE_OPTIONS= --require "c:/Users/brooney/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/ms-vscode.js-debug/src/bootloader.js" --inspect-publish-uid=http' 'VSCODE_INSPECTOR_OPTIONS=:::{"inspectorIpc":"\\.\pipe\node-cdp.27104-a52099ff-9.sock","deferredMode":false,"waitForDebugger":"","execPath":"C:\Program Files\nodejs\node.exe","onlyEntrypoint":false,"verbose":true,"autoAttachMode":"always","fileCallback":"C:\Users\brooney\AppData\Local\Temp\node-debug-callback-d776087ff7bce7f1"}' C:\Program\ Files\nodejs\node.exe .\debug.js
s","fileCallback":"C:\\Users\\brooney\\AppData\\Local\\Temp\\node-debug-callback-d776087ff7bce7f1"}' C:\\Program\ Files\\nodejs\\node.exe .\\debug.js ;fa763c12-ed8e-4e84-89da-e434e8b3a536runtime.launch Bootloader imported {
env: {
inspectorIpc: '\\.\pipe\node-cdp.27104-a52099ff-9.sock',
deferredMode: false,
waitForDebugger: '',
execPath: 'C:\Program Files\nodejs\node.exe',
onlyEntrypoint: false,
verbose: true,
autoAttachMode: 'always',
fileCallback: 'C:\Users\brooney\AppData\Local\Temp\node-debug-callback-d776087ff7bce7f1'
},
args: [
'C:\Program Files\nodejs\node.exe',
'C:\Users\brooney\Downloads\debugIssue\debug.js'
]
}
runtime Set debug mode { mode: 2 }
This is a test

VS Code version: Code 1.96.0 (138f619, 2024-12-11T02:29:09.626Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz (8 x 2304)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 15.76GB (2.08GB free)
Process Argv C:\Users\brooney\Documents\RWC\git_projects\fuse_sdk --crash-reporter-id bb04358a-ac82-47ba-91a4-336033eb8b50
Screen Reader no
VM 0%
Extensions (31)
Extension Author (truncated) Version
swagger-viewer Arj 3.1.2
vscode-eslint dba 3.0.10
githistory don 0.6.20
xml Dot 2.5.1
gitlens eam 16.0.5
EditorConfig Edi 0.16.4
copilot Git 1.251.0
copilot-chat Git 0.23.1
vscode-drawio hed 1.6.6
vscode-nuget-package-manager jmr 1.1.6
git-tree-compare let 1.17.0
vscode-docker ms- 1.29.3
debugpy ms- 2024.14.0
python ms- 2024.22.0
vscode-pylance ms- 2024.12.1
jupyter ms- 2024.11.0
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.0.21
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
remote-containers ms- 0.394.0
remote-wsl ms- 0.88.5
js-debug-nightly ms- 2024.12.1217
vscode-yaml red 1.15.0
markdown-preview-enhanced shd 0.8.15
code-spell-checker str 4.0.21
intellicode-api-usage-examples Vis 0.2.9
vscodeintellicode Vis 1.3.2
vscode-todo-highlight way 1.0.5
pretty-ts-errors Yoa 0.6.1
markdown-all-in-one yzh 3.6.2
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551cf:31179979
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyonecf:30548226
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupyter:31046869
newcmakeconfigv2:31071590
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc2:31192216
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624

@roblourens
Copy link
Member

/jsDebugLogs

@roblourens roblourens added the info-needed Issue requires more information from poster label Dec 14, 2024
@roblourens roblourens assigned connor4312 and unassigned roblourens Dec 14, 2024
Copy link

Please collect trace logs using the following instructions:

If you're able to, add "trace": true to your launch.json and reproduce the issue. The location of the log file on your disk will be written to the Debug Console. Share that with us.

⚠️ This log file will not contain source code, but will contain file paths. You can drop it into https://microsoft.github.io/vscode-pwa-analyzer/index.html to see what it contains. If you'd rather not share the log publicly, you can email it to connor@xbox.com

@connor4312
Copy link
Member

Please use an older version of Node.js nodejs/node#56002

@brooneyredwood
Copy link
Author

brooneyredwood commented Dec 16, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants