Delay for debugger to attach
See original GitHub issueI’m experiencing a delay between launching the debugger in VS Code and having the debugger fully attach. The browser opens, and the page loads, but all of the breakpoints in VS Code are grayed out and the context menu in the browser won’t open. After about 30 seconds, the debugger finally finishes attaching, the breakpoints become active, and the context menu starts working in the browser. I’m on a Mac with the latest version of iOS, Firefox and VS Code, using the following config;
{
"name": "Launch Firefox",
"type": "firefox",
"request": "launch",
"url": "http://localhost:3000",
"pathMappings": [
{
"url": "http://localhost:3000/path/to/my-repo/",
"path": "${workspaceFolder}/"
}
]
}
Any ideas what might be causing this delay? Has anyone else experienced this? I’m happy to help debug further, but I’m not sure where to start looking, so any hints would be helpful.
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Pause process to allow time for debugger to attach
I've tried with a sleep but it is then tricky to choose a delay long enough that I have time to catch it...
Read more >Debugger slow to attach - Visual Studio Feedback
I have the same issue; attaching/reattaching to a process from VS is painfully slow, over 1 minute. It also takes about 3.5 minutes...
Read more >Attaching native debugger is very slow and locks up Android ...
Attaching native debugger can take up to 10 minutes to attach in project with many modules (200+). While it is attaching, it also...
Read more >Java: slow performance or hangups when starting debugger ...
Webstorm debugger on Chrome sometimes works slowly with 3-4 delay between actions when connected to localhost, connecting to 127.0.0.1 ...
Read more >Extrem slow debug launch startup | Apple Developer Forums
Every debug start in an iOS project (macOS projects start up fast) that I'm working on (even in a blank new project), lasts...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hbenl Ask and ye shall receive 😀. Thank you so much, it works quite snappily now!
Thanks for the log file, it shows that you hit the performance bug that I just fixed a few minutes ago in version 2.3.4. Please try with that version and tell me if it works for you now.