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.