You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Since latest update I'm getting "It's taking a while to configure your breakpoints." message #142830
Exec.js is just a wrapper that executes a method in fetch.js.
Starting this program now sometimes takes a long time and I get the following warning:
It's taking a while to configure your breakpoints. You can speed this up by updating the 'outFiles' in your launch.json.
I only have a few breakpoints, nor was this causing a problem before the update. What's changed? And why am I advised to update outFiles while I'm only running a simple javascript script?
VS Code version: Code - Insiders 1.65.0-insider (82a8bec, 2022-02-10T05:16:36.093Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
System Info
Item
Value
CPUs
Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz (8 x 2494)
We met same issue at VSCode 1.64.2, it becomes super slow to get debug started. Tried a workaround is adding outFiles in the launch.json config.
Also tried go back to old VSCode 1.63.2, which doesn't have this issue.
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.
I've sent the log to that mail address. I've tried parsing it using your online tool, and it seemed to work, but I couldn't see some sort of share button. If you need anything else, let me know!
roblourens did something change in ripgrep in the last release? It looks like the time is all spent in findTextInFiles. The only change js-debug made is that where previously it would have searched with
{ include: new vscode.RelativePattern(workspaceFolder, '**/*.js'), exclude: '**/node_modules/**' }
it now also includes an excluding explicitly using the workspace folder, like
{ include: new vscode.RelativePattern(workspaceFolder, '**/*.js'), exclude: `**/node_modules/**,${workspaceFolder}/**/node_modules/**` }
Andre Weinand (@weinand) I'm not seeing the original TS sources though when debugging this way. The breakpoints end up in some generated files which contain a sourcemap comment at the end. Note that there are no generated .js files on disk, because the .ts files are transpiled similar to how ts-node does it (except using esbuild which is faster).
Edit: here's an example:
Edit 2: For reference, here's the same breakpoint in 1.63.2, without outFiles configured and without the debugger complaining that it takes long to resolve breakpoints:
Still weird that this used to work before, but now VSCode becomes unusable after debugging without this configuration. When the It's taking a while to configure your breakpoints. message is shown, debugging gets stuck and I have to restart VSCode to be able to use it again.
I think it would be reasonable to automatically configure the config like that if we see the runtimeExecutable is ts-node or similar.
A nicer way that would solve lots of problems is if the debugger could do a "test run" of the program to see how it's configured and then automatically update the launch.json appropriately... microsoft/vscode-js-debug#1214
We could see flags like -r/--register pretty easily, and we already parse runtimeArgs for other reasons. But if you had a launch config which just runs something like npm run start or a custom shell script, we can't see that.
We are having a mono-repo project. Suggested solution to add "outFiles": [],"resolveSourceMapLocations": null, didn't work. This specific issue happens only with the VSCode version 1.64.2. The moment we switch back to previous version 1.63.2, the problem disappears. Our launch.json looks like this,
This issue started bugging me about 3 weeks ago, when I updated to 1.67.2 (OS Windows_NT x64 10.0.19044). Adding "--disable-gpu" to VSCode's shortcut icon solved it immediately.
Activity
maowenzhang commentedon Feb 11, 2022
We met same issue at VSCode 1.64.2, it becomes super slow to get debug started. Tried a workaround is adding outFiles in the launch.json config.
Also tried go back to old VSCode 1.63.2, which doesn't have this issue.
connor4312 commentedon Feb 11, 2022
/jsDebugLogs
vscode-triage-bot commentedon Feb 11, 2022
Please collect trace logs using the following instructions:
MarByteBeep commentedon Feb 12, 2022
I've sent the log to that mail address. I've tried parsing it using your online tool, and it seemed to work, but I couldn't see some sort of share button. If you need anything else, let me know!
connor4312 commentedon Feb 15, 2022
roblourens did something change in ripgrep in the last release? It looks like the time is all spent in
findTextInFiles. The only change js-debug made is that where previously it would have searched withit now also includes an excluding explicitly using the workspace folder, like
cdaringe commentedon Feb 15, 2022
For the Javascript Debug Terminal, I'm not sure which
attachconfiguration to ploptraceinto. Any advice--I'd like to do some profiling as well :)roblourens commentedon Feb 16, 2022
No change to ripgrep or relevant search code that I can think of
knaos commentedon Feb 18, 2022
I confirm our team has the same issue in the latest release.
knaos commentedon Feb 18, 2022
Following the advice from issue #140427 to start VsCode with --disable-gpu flag fixes the problem.
EDIT: This is NOT fixing the problem.
connor4312 commentedon Feb 18, 2022
That is quite surprising... can anyone else in the thread verify whether the same steps fix it for them?
16 remaining items
AlCalzone commentedon Feb 24, 2022
Andre Weinand (@weinand) I'm not seeing the original TS sources though when debugging this way. The breakpoints end up in some generated files which contain a sourcemap comment at the end. Note that there are no generated .js files on disk, because the .ts files are transpiled similar to how
ts-nodedoes it (except using esbuild which is faster).Edit: here's an example:

Edit 2: For reference, here's the same breakpoint in 1.63.2, without

outFilesconfigured and without the debugger complaining that it takes long to resolve breakpoints:connor4312 commentedon Feb 24, 2022
AlCalzone please see #142830 (comment)
AlCalzone commentedon Feb 24, 2022
does the trick 👍🏻
Still weird that this used to work before, but now VSCode becomes unusable after debugging without this configuration. When the
It's taking a while to configure your breakpoints.message is shown, debugging gets stuck and I have to restart VSCode to be able to use it again.connor4312 commentedon Feb 24, 2022
I think it would be reasonable to automatically configure the config like that if we see the
runtimeExecutableists-nodeor similar.A nicer way that would solve lots of problems is if the debugger could do a "test run" of the program to see how it's configured and then automatically update the launch.json appropriately... microsoft/vscode-js-debug#1214
AlCalzone commentedon Feb 24, 2022
I think this heuristic is going to be interesting. In my case, the runtime config is this:
connor4312 commentedon Feb 24, 2022
We could see flags like
-r/--registerpretty easily, and we already parse runtimeArgs for other reasons. But if you had a launch config which just runs something likenpm run startor a custom shell script, we can't see that.meetgaurang commentedon Mar 2, 2022
We are having a mono-repo project. Suggested solution to add
"outFiles": [],"resolveSourceMapLocations": null,didn't work. This specific issue happens only with the VSCode version1.64.2. The moment we switch back to previous version1.63.2, the problem disappears. Ourlaunch.jsonlooks like this,connor4312 commentedon Mar 2, 2022
Gaurang Patel (@meetgaurang) please collect trace logs using the instructions in the 2nd comment
AlCalzone commentedon Mar 3, 2022
Connor Peet (@connor4312) here's a trace where NO breakpoint is set:
vscode-debugadapter-c18555ee.json.gz
and here's the same situation but with an existing breakpoint, which took roughly 5 minutes to resolve:
vscode-debugadapter-b587cb99.json.gz
meetgaurang commentedon Mar 7, 2022
I confirm that we no longer face this issue with the recent release - 1.65.0. It seems to be fixed.
MarByteBeep commentedon Mar 7, 2022
Any idea what might have fixed it? I'll update and verify as well tomorrow.
AlCalzone commentedon Mar 14, 2022
Can confirm, 1.65.2 does work like 1.63.x
jefersonlucio commentedon Jun 7, 2022
This issue started bugging me about 3 weeks ago, when I updated to 1.67.2 (OS Windows_NT x64 10.0.19044). Adding "--disable-gpu" to VSCode's shortcut icon solved it immediately.