Debugging C using Visual Studio Code on Linux

preview_player
Показать описание
No audio.
Рекомендации по теме
Комментарии
Автор

Hi I code in C so instead of "--std=c++1" I put "--std=c11" as an argument but I get the cc1plus.exe warning '-std=c11' is valid for C/ObjC but not for C++. How can I make sure that I am using the correct C version in VS Code on other IDE's I sometimes get the error that I must use C11 or C99 instead. How can I do this in VS Code or should I just continue to code in C with C++ as the default version. Thanks for the help guys.

brandonphilander
Автор

Helped Me,
Thanks
You can also put the absolute path instead

shashwathiregoudar
Автор

sooo.. I have to do this everytime I want to run a code ?!
I mean .. I only get to see the code running in that terminal at the bottom?!
Because when I click the green play button next to DEBUG a terminal pops up but only half of the code works ....
Like in a bubble sort for example it only asks for the number of elements and each element It dosn't give me the sorted numbers it just closes ...

camillapantoja
Автор

Hi..do you know how to solve this error...
whenever I open cpp program in vscode...
Thanks in advance..please reply asap..

Krishna-zhpw
Автор

Now I can finally debug, the only problem I have is that it ignores the breakpoints :(
Thanks for the vid.

Kloudjumperr