Debugging C++ Program in Visual Studio Code (VSCode)
ฝัง
- เผยแพร่เมื่อ 28 ก.ย. 2024
- In this tutorial, we will guide you through the process of debugging a C++ program using Visual Studio Code. Visual Studio Code is a powerful code editor with debugging capabilities that can help you find and fix issues in your C++ code.
We will cover the steps required to set up a new C++ project, create a new C++ file, and write a simple program. You will learn how to set breakpoints, step through your code, and examine variables and expressions at runtime. We will also show you how to use the console to print out debug information.
This tutorial is perfect for beginners who are new to C++ programming and want to learn how to debug their code using Visual Studio Code. By the end of this tutorial, you will have a basic understanding of how to use the debugging features in Visual Studio Code to find and fix issues in your C++ programs. Let's get started!
#C++ #Debugging #VisualStudioCode #ProgrammingTutorial #DebuggingTutorial #CodeEditor #Breakpoints #Variables #Expressions #Runtime #ConsolePrinting #BeginnerFriendly #ProgrammingEducation
Preparing debug configuration starts from 8:30
Thanks bro
thanks
Thanks
None of this works. You need to explan how to to properly set up the .json files. You only explain the easy part.
Same problem bro
Bro is done 😂
Mine just work fine. But I am using Pop_OS instead of Windows OS.
sometimes the gcc will be set as default, you need to change it to g++ as shown in video. check it once again in your pc.
Did you find any solution
this video is unnecessarily long
Complete guide for using an extension ❤
Thank you very much for sharing. Will you please tell me how to change from c++ to phython program code writing?
sir but g++ is not coming in my vs code
Nothing try to run int num =5 ; in debug console like python for example it will not work.
thank u bro
Lifesaver
Not Working ,please upload new video
try to make short video
3_Linear_Search.c:3:9: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
is anyone who solve this error
I don't have enough time to watch your long video.
I had extension.json build only??
Your explanation is awesome! Thank you so much!
Thank you.😁
thnaks bro
watch it at 2x
Hey Brother!!
I'm encountering an error when trying to start debugging, and it's showing: "Could not find the task 'C/C++: clang++ build active file'." How can I resolve this issue?
yes this one is on my also it was working fine before any idea how u solved it
Did you solved it ?
@@نسيبهعبدالله-ف8ر Nope brother
Did you solve it😂
thank you it's run 💖
thank u bro
Installing MinGW and GDB on Windows is a most hard part...
Better move to opensource Operating system. Then you won't have to install anything.
@@VikasPooniaLinux is still used only by about 1-2% of people. Borland C for DOS was much-much simpler to use than VS Code C++ debugger. We really need DOS epoch.
Thank you so Much. It is very helpful