r/VisualStudioCode • • Aug 22 '21

Making VS Code open a new macOS terminal window when start debugging (F5)

Hi everyone! I am new to coding in VS Studio, and I've been wondering how do I make VS Studio Start Debugging (F5) in macOS to open in a external macOS Terminal window? I am using .net 3.1 and c# is the language. Again, I just started and I don't really know anything so any kind of help would be appreciated.

3 Upvotes

15 comments sorted by

1

u/scinos Aug 22 '21

Edit your launch configuration in launch.json and add "console": "externalTerminal"

1

u/SavaGligorijevic Aug 22 '21

I tried that, it isn't opening an external terminal window

1

u/scinos Aug 22 '21

Maybe the debugger you are using doesn't support it? Works for me when using node.

In case you don't know, the doc is in https://code.visualstudio.com/docs/editor/debugging

1

u/SavaGligorijevic Aug 22 '21

could you kindly explain it to me? I just started today and i dont know none of these terms

1

u/scinos Aug 22 '21

Can you show me your entire launch.json?

1

u/SavaGligorijevic Aug 22 '21

first, I want to thank you for trying to help me. I'm going to upload the image to imgur since I can't post images in replys. The imgur link is: https://imgur.com/gallery/JIkncBR

1

u/scinos Aug 22 '21

I've never used VSCode for C#, but the doc (https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window) suggests it should work and open an external terminal.

What does happen when you press F5?

1

u/SavaGligorijevic Aug 22 '21

it starts debugging and it doesn't open an external window, it opens the terminal in the VS Code itself. Then it goes into the debug console.

1

u/scinos Aug 22 '21

No idea then mate, sorry.

Maybe try setting it to "integratedTerminal" just to see if anything changes

1

u/SavaGligorijevic Aug 22 '21

integratedTerminal It's same, nothing has changed. Thanks for trying!

→ More replies (0)

1

u/scinos Aug 22 '21

Just to make sure we are on the same page: if I'm not mistaken, that setting defines where the output of your app is displayed, but the debugging itself will always happen in the Debug tab.

1

u/SavaGligorijevic Aug 22 '21

if at "externalTerminal", it should open a terminal window, if "intergratedTerminal" it should open the terminal in VS Code. Debugging will happen in the debug console regardless if it's intergrated or external terminal