How to Input Data in Debugging with VS Code

Asked

Viewed 456 times

2

I started using VS Code to program, I like it a lot.

But in a simple console application, when I am in debugging and arrives in a line with Console.ReadLine() you can’t input data, I write on the console, but nothing....

If in the debugger console it is not possible to do the data entries, I can do it in an external console?

  • I don’t know if it helps you but with vs code you can open several consoles at the project root or in internal project folders... If you want I’ll put a step by step there for you. I just don’t know if he’ll help you with the problem you’re having there. But opening more than one console in the project is easy, like one running springboot and the other in git committing to the repository etc

1 answer

2

Get what you wanted by following this tutorial. Basically what I did was change Launch.json from VS code to line with

"console": "internalConsole"

for

"console": "integratedTerminal"

and from there instead of using the debugger console I use the common terminal, where it is possible to input data.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.