Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable node.js app debugging in Visual Studio Code (vscode)

I am working on this node.js application using Visual Studio Code IDE. Everytime I run this application, it is attaching a debugger (which takes around 2-5 seconds) and then executing the application.

So, my issue is everytime if I modify some code (or a simple variable name) and execute the program, it takes this much time to see the output even though I haven't set any breakpoints.

Need help in disabling the debugger in Visual Studio Code IDE for node applications development. I can't find anything helpful on net :( .

like image 842
sam Avatar asked Nov 23 '16 18:11

sam


People also ask

How do I get rid of debugger attached?

How do I disable debugger attached? To enable or disable Edit and Continue: If you're in a debugging session, stop debugging (Debug > Stop Debugging or Shift+F5). In Tools > Options > (or Debug > Options) > Debugging > General, select Edit and Continue in the right pane.

How do I enable debugging in Visual Studio?

In the Visual Studio toolbar, make sure the configuration is set to Debug. To start debugging, select the profile name in the toolbar, such as <project profile name>, IIS Express, or <IIS profile name> in the toolbar, select Start Debugging from the Debug menu, or press F5.

How do I enable auto attach in or code?

You enable auto attach by running Debug: Toggle Auto Attach command from the Command Palette, and once activated you can toggle auto attach from the Status Bar as well.


2 Answers

There is workbench.action.debug.run which is bound to cmd+f5 / ctrl+f5 by default.

You can find it in the command palette under the name "Debug: Start without Debugging"

like image 192
kwood Avatar answered Sep 18 '22 15:09

kwood


Inside the VsCode terminal, I've switched the terminal to zsh instead of the JS Debug Console and it fixed it:

Screenshot of the terminal's dropdown

like image 31
JulienRioux Avatar answered Sep 19 '22 15:09

JulienRioux