How to debug in the internal Terminal instead of in the Debug Console? #8605
Answered
by
TryerGit
Charlie Stevens (EXStevens)
asked this question in
Q&A
|
The console/terminal settings in launch.json seem that they're no effect. |
Answered by
TryerGit
Dec 26, 2021
Replies: 1 comment 1 reply
|
AFAIK, the output from your program does NOT appear in the integrated terminal under Windows. It appears in the debug console. The problem with the debug console is that it does not accept user input, scanf, getchar, etc. See https://stackoverflow.com/questions/64394561/how-to-type-into-the-integrated-terminal-on-vs-code-in-windows In Linux, the output can appear in a new session of the integrated terminal where you can enter user input. |
1 reply
Answer selected by
EXStevens
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AFAIK, the output from your program does NOT appear in the integrated terminal under Windows. It appears in the debug console. The problem with the debug console is that it does not accept user input, scanf, getchar, etc. See https://stackoverflow.com/questions/64394561/how-to-type-into-the-integrated-terminal-on-vs-code-in-windows
So, the only solution in Windows is to have the output appear on a separate console screen, much like how the output appears there in Visual Studio IDE, for instance. Here, you can enter your user input.
In Linux, the output can appear in a new session of the integrated terminal where you can enter user input.