question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Delay for debugger to attach

See original GitHub issue

I’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:open
  • Created 5 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
PaulWaldocommented, Oct 4, 2019

@hbenl Ask and ye shall receive 😀. Thank you so much, it works quite snappily now!

0reactions
hbenlcommented, Oct 4, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found