SpiderRico
SpiderRico

Reputation: 2026

How to use VS Codes integrated terminal for debugging?

When I debug on VS code, it prints to the gnome-terminal. This makes it hard to keep track of both the code and the terminal sometimes. Is it possible to print to the integrated terminal rather than the external terminal ?

Upvotes: 5

Views: 9790

Answers (1)

Jakub Synowiec
Jakub Synowiec

Reputation: 5959

To tell VS Code to use the integrated terminal with debugging you have to specify this in the launch configuration (.vscode/launch.json) using the console option. This setting specifies where to launch the debug target: internal console, integrated terminal, or external terminal.

"console": "integratedTerminal",

You can read more about various launch.json attributes in the Code's documentation

Upvotes: 11

Related Questions