VSCode C ++ pause shell on exit

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.

+4
source share

No one has answered this question yet.

Source: https://habr.com/ru/post/1665215/


All Articles