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.

debugger: continueOnAttach

See original GitHub issue

When attaching to a whole bunch of different kinds of apps via a debug adapter, the debugger always starts a break point state where users needs to continue so it hits the user defined breakpoint. Would be great to have “continueOnAttach” in debugger config.

        {
            "name": "Nodejs Attach",
            "type": "node",
            "request": "attach",
            "port": 9229,
            "smartStep": true,
            "continueOnAttach": true
        },

this would mean when I start node in --inspect-brk mode like node --inspect-brk node_modules/webpack/bin/webpack.js. I can simply hit F5 to start debugging and land on the breakpoint. Because 99.9% of the time when the debugger connects I just want it to continue.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
connor4312commented, Feb 14, 2020

Added in https://github.com/microsoft/vscode-js-debug/commit/09bffbb12174fbd85d95ab9f30eeef49e2457f9b

Testers, to verify:

  • Create a pwa-node attach launch config. Start some Node script with node --inspect-brk script.js
  • Verify when you connect you’re paused on the first line.
  • Modify the launch config to add continueOnAttach: true, and restart the script
  • Verify that the program continues execution once you connect and you are not paused.
0reactions
roblourenscommented, Dec 17, 2019

Yeah, that makes sense

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debug Node.js Apps using Visual Studio Code
The Visual Studio Code editor includes Node.js debugging support. ... continueOnAttach - whether to continue the process if it's paused when we attach...
Read more >
Launching the Debugger | Qt Creator Manual
Select the Continue on attach check box to instruct the debugger to keep the application running after attaching to it. Select Start Watching...
Read more >
Edit & Continue only works when using "Start external ...
I have an Excel-DNA project in C# using .NET 4.0 using Visual Studio 2010/2015. If I start Debug and use the "Start external...
Read more >
.NET EnC support for Lambdas and other improvements in ...
Edit and Continue when debugging on Windows Phone 10 emulators—does not work on ARM devices; Edit and Continue on attach—to enable edit and ......
Read more >
the Fresh Open Source Software Archive - Fossies
","configuration.pickAndAttachOptions":"Default options used when debugging a process through the `Debug: Attach to Node.js Process` command","configuration.
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