Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Don't open Debug panel by default

Is there a configuration setting that prevents the Debug panels (Variables, Watch, Call Stack) and Debug Console from opening on debug start / F5?

Specifically when debugging a node app, its not needed. On a small screen it takes up valuable space and is unneeded.

like image 786
Greg Avatar asked Jan 23 '16 17:01

Greg


People also ask

How do I turn off debug mode in Vscode?

VS Code maintains a debug session while the program is running, and pressing the Stop button terminates the program.

How do you start a Debug session in VS code?

Switch to the Run and Debug view (Ctrl+Shift+D) and select the create a launch. json file link. VS Code will let you select an "debugger" in order to create a default launch configuration. Pick "Mock Debug".

How do I clear the Debug console?

Use the short cut Ctrl + L to clear the console. Use the clear log button on the top left corner of the chrome dev tools console to clear the console. On MacOS you can use Command + K button.

How do I open debugger?

Press Ctrl + Shift + Z on Windows and Linux, or Cmd + Opt + Z on macOS (starting in Firefox 71; prior to Firefox 66, the letter in this shortcut was S ). Press the menu button. , select “Developer”, then “Debugger”.


2 Answers

It is now possible using the debug.openDebug User Setting.

You can set it to either:

  • neverOpen
  • openOnDebugBreak
like image 179
micro_man Avatar answered Oct 09 '22 03:10

micro_man


If you set "internalConsoleOptions":"neverOpen" in .vscode/launch.json, the Debug Console does not open up when you start debugging.

Issue on GitHub

Terminology: The Debug Console is officially called Debug Console Panel, whereas the view opening on the left side is refered to as Debug Side Bar All about debugging in VS Code

like image 45
rukaelin Avatar answered Oct 09 '22 04:10

rukaelin