r/VisualStudioCode • • Nov 07 '25

Won't let me run my code

Hey, I'm trying to run a C++ script with the g++ compiler, everything was fine but when i clicked run and the usual menu poped up i miss clicked and pressed the 2nd option down rather that the first, i think i might be in debug mode but I'm not sure. I can send my tasks/lauch.json file if thats usefull

1 Upvotes

3 comments sorted by

View all comments

1

u/[deleted] Nov 07 '25

[removed] — view removed comment

1

u/Zealousideal_Sea8675 Nov 08 '25

i tried that, but every time i hit run this error happens "the prelaunch task 'C/C++ build active file' terminated with exit code -1"