0

I am on a Mac, and I code using VSCode. I am a Java programmer, and I can debug very easily by using the Java plugin on VSCode. I could still use the terminal to give inputs (System.in). For C++, I could get the line by line debugger working, but the terminal says

Terminal will be reused by tasks, press any key to close it.

What do I need to do to give inputs using the terminal while debugging?

Also, am I using the correct method to launch the line by line debugger? I am clicking "start debug" in the "Run and Debug" tab of VSCode. Please let me know if there is a better way to do line by line debugging in cpp.

Rain Li
  • 1
  • 2
  • _"I am a competitive Java programmer"_ I recommend to not tell this on Stackoverflow. Competitive programming has a special reputation here. Have you read https://code.visualstudio.com/docs/cpp/cpp-debug? – Thomas Sablik Apr 14 '21 at 21:45
  • This is a bit outdated, but may help with inputs: https://stackoverflow.com/a/57498269/7468485 – Dmitriy Vornychev Apr 14 '21 at 22:40

0 Answers0