Not sure if this is the right behavior or not, but when I debug C ++ code using the VCPode cpp extension, it instantly closes after execution.
I use KDE on Arch Linux with an XTerm terminal, since the cpp extension only supports this or gnome-terminal. I would like to configure either the cpp extension or XTerm to pause after completing the task.
I know that I can use scanf ("% c") or a system ("read") or some similar C ++ command that is waiting for input, but this is really not a good solution for me.
source
share