-
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
Unbound breakpoint #102493
Comments
Also experiencing the same issue with 1.47.0 debugging babel-node { Downgrading to 1.46.1 fixes the issue |
I am having the same issue with 1.47.0 debugging node js. "configurations": [ |
@inverherive For babel, see #102152 (comment) @billyson Please collect a trace log using these instructions:
@cliff-robbins-whcc if you aren't using Node 8 (#102166 (comment)) please collect a trace log using the instructions above. /needsMoreInfo |
It's happening to me as well since I updated to 1.47.1 earlier in the day. edit: just downgraded back to 1.46.0 and the breakpoints are bounding again. |
me too, downgrading to 1.46.1 made it work again. |
Fyi you can set However, please collect trace logs using the instructions above so that your issue can be fixed, as this option will eventually go away. |
Looks like Debugger for Chrome v 4.12.9 that causes the issue. |
Yes, this is the version where redirection to the new debugger was established. |
Upgrade to
Breakpoint could be bounded after disable |
@eric-wei1990 please collect a trace log using the instructions given above. |
@cliff-robbins-whcc thank you for the emailed log. It looks like you're experiencing the same symptoms as the Node 8 issue I linked above (#102166 (comment)). Do those resolution steps work for you? |
@connor4312 I was able to get it to work with disable debug.javascript.usePreview. |
@connor4312 |
@eric-wei1990 can you see if you continue to experience the problem on the latest nightly? |
@connor4312 This problem still happens, please check this log: By the way, I'm using VS Code Remote Development for developing. |
Is your program actually running? I don't see any output logged, normally at minimum we'd see "Debugger listening on ...". Do you see stuff in the Debug Console? |
@connor4312 |
Interesting. If you add this line to your program, does anything get echoed? |
Okay, last thing -- add
When you run it on the internal console, the environment variables will be printed out and set on the command line so we can verify whether they're present. |
Alright, interesting. Looks like the variables are set, but the bootloader isn't triggering debug mode. I created a special build of js-debug with additional logging if you're able to give it a shot. The additional logs will appear right in the console: https://memes.peet.io/img/js-debug-nightly-for-102492.vsix (Install using the "Install from VSIX" command) |
Unable to install this vsix(https://memes.peet.io/img/js-debug-nightly-for-102492.vsix) |
Whoops. Try again: https://memes.peet.io/img/js-debug-nightly-for-102492-again.vsix |
I have the same issue, no way to resolve it even by downgrading to version 1.48.2.
My lauch.json is the following:
|
@SergioEanX please share your logs as described above so I can help you with your issue. |
@connor4312 well that's embarrassing. I've never written an extension before........ :-) |
Extensions only get activated when some event happens. In the case of the sample, it's only activated when "hello world" is run https://github.com/microsoft/vscode-extension-samples/blob/master/helloworld-sample/package.json#L14-L16 More about extensions: https://code.visualstudio.com/api/get-started/extension-anatomy |
I finally resolved the issue by completely removing VS Code from my Mac and reinstalling version 1.46.1. |
@SergioEanX I would encourage you to share the trace logs so we can get your issue resolved. It should only take a minute or two of your time to collect them, and then you won't be stuck forever on an old version of VS Code 🙂 |
@connor4312 Thanks for your support. The problem was solved after upgrading to 1.49.1 this morning |
Hi @connor4312, just found out I'm having the same issue after updating. I quickly "solved" by tweaking my outFiles to include any files under ${workspaceFolder}, as seems to be the same issue suggested in this response, but mine is a really dirty fix to keep working. My launch.json is:
The first config works like a sharm, the second one doesn't, it seems to execute perfectly, just doesn't like my breakpoints, any suggestion? |
Glad to hear you got it working. If you grab a trace log, that will give me enough information about your environment to be able to look into it further. |
Just sent them to your email, thanks a lot. |
Thanks for the logs. It looks like the serverless build creates recursive sourcemaps, which is interesting... so effectively the algorithm sees the recursed source maps as coming from the same paths as your source files, which means that targeting
|
Huh, interesting, I thought the scanning would be quite costly, but yeah, I'm not noticing much of a difference, to be honest. I'll remove outFiles and avoid anything too specific, plus, that's 50+ lines less in a file that keeps getting bigger... Every bit counts :D Thanks for all the help. |
Below the trace logs.
I have the same issue on Linux Ubuntu 20.04, I'll share that logs too. |
This is my trace logs from an Opensuse Tumbleweed: Here still the same issue. |
I have the same issue, but with Angular, when running in a devcontainer. I believe this worked in 1.48. I have uploaded a complete example, just need to do an "npm install", and build the angular app. I've also attached the json.gz after running with "trace: verbose". Nothing exciting in the project except the launch/debug settings, if you open within a container (Remote Containers: Reopen in Container), select "Run" tab, then select "Launch Angular in Container", then just click "Start Debugging", you should see that a breakpoint set in app.component.ts (line 9, which sets the title) doesn't get hit. Note that the breakpoint does get hit if you open this locally and using the "Launch Angular" run configuration. |
Yea, in the logs it seems like everything is working.
This is expected when running
It doesn't look like we're getting an attachment at all there. Can you try removing
Thanks for the logs and repro! Two things --
With these two changes your launch config should look like this:
|
@connor4312 - Thats fixed me! Thank you very much for solving that! |
Also having problems with hitting break points after an upgrade to 1.49.x. Currently I am on 1.49.1. My launch config looks like this:
|
@jomofrodo in the log file you sent, your launch config is different -- you have something like
But your sources are like |
Same NodeJS/ExpressJS app and same issue for VS Code greater than 1.46. This time on Ubuntu 20.04. Any hope to resolve it? Thanks. Below my trace logs. |
@SergioEanX see my followup to your question here #102493 (comment) |
@connor4312 Got it to work with this launch config:
Thanks for the help. |
New trace logs below (having removed "console": "integratedTerminal") "debug.javascript.usePreview": false in settings.json, actually resolve the issue.
|
I have the same issue with the latest VSCode (Version: 1.49.1)
It worked before, now it says unbound breakpoint once debugging starts. I am using one non local javascript module using "unpkg" to import: Not sure if this is important to know. |
@hanshamm please collect trace logs so I can help with your issue! @SergioEanX do you have any kind of antivirus/firewall running locally? We've seen a few cases presenting the same symptoms that were caused by an AV blocking the program connecting back to VS Code. |
@hanshamm can you please collect a single isolated log with the issue you're describing so I can efficiently and correctly identify your problem? |
Issue Type: Bug
Hi,
After my VS Code updated to the latest version for some reason i can no longer place a breakpoint anywhere in my code.
When i place a breakpoint, it gives the round circle without red and it says "Unbound breakpoint".
This is a little bit disappointed.
Below is the launch.json configuration:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Chrome - CIS5",
"url": "https://localhost:3000",
"webRoot": "${workspaceFolder}",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:///./": "${workspaceRoot}/"
}
}
]
}
VS Code version: Code 1.47.0 (d5e9aa0, 2020-07-09T08:02:06.629Z)
OS version: Windows_NT x64 10.0.17763
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Extensions (27)
(2 theme extensions excluded)
The text was updated successfully, but these errors were encountered: