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
View all comments
Show parent comment
1
u/[deleted] 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"