How to set up Visual Studio Code for Executing and Debugging C++ Programs | Tutorial for Beginners

preview_player
Показать описание
In this tutorial, you will learn How to Set up Visual Studio Code for Creating, Executing and Debugging C++ Programs.

00:00 Introduction
00:36 Check g++ and gdb are installed
01:44 Set up Visual Studio Code Work Space
04:58 Installing C/C++ Extension in VS Code
06:17 Configure C/C++ Properties
08:18 Set up Build Task and Run Program
13:27 Configure Task to Build and Run Executable File
24:04 Set up Vs code for debugging
26:46 Debug Cpp Program using a Break Point

Visual Studio Code is the widely used editor in Computer Programming field.
It is the best editor for a beginner in programming because it is simple, easy to set up and has all those features needed.

First you need to Download and Install C Cpp toolset ( Compiler , linker etc ) like mingw-w64. After that you need to install Visual Studio Code.

Download and Install gcc using Mingw-w64 and msys2

Download and Install Visual Studio Code

Our Website
Social Media
Рекомендации по теме
Комментарии
Автор

I'm just in love with this video man!! It was so great! You explained the entire process right from the basics and it was just too good to be expressed in words. 15/10 for this one.🔥🔥🔥🔥🔥

nityunjgoel
Автор

This is amazing! Always wanted to know a way to debug programs while writing programs for competitive questions!
Finally, I can use a debugger of my own! :D

justsurajp
Автор

This is, most probably the best video for VS Code Configurations setup. I learnt so much and got curious about tasks.json and launch.json, that I learnt how to write configurations by myself. Now I do it my way, thanks Sir for this tutorial which was the stepping stone.

ayushmishra
Автор

At first, the program in the VS Code terminal did not start for me (initially, the "Powershell" terminal was selected). Then I selected the "Command Prompt" terminal (the "Launch Profile" button next to the "New Terminal" icon at the bottom right of the screen, then select "Select Default Profile" and in the drop-down list - "Command Prompt"). After that everything worked. Many thanks to the author for the detailed instructions and the work done!

ВасяПетрович-лш
Автор

Thank you so much! After watching many tutorials and getting stuck on how to set up the debugger, this video helped me successfully run the debugger!

gentsci
Автор

I had problems with setting this shit up since last 6 freakin' hours until I found your channel. You're my hero <3

kondziolkaptr
Автор

Thank you very much!!! Way simpler and better explained than the VSCode web page.

juanmanuelgomez
Автор

Thank you very much, sir. You've made my day! I couldn't get it to work, and googled unsuccessfully for quite some time, until I found your video.

arieverburgh
Автор

Microsoft has such a great product in VSCode but I’ve always found their tutorials lacking when it comes to personalizing your environment. I learned more from this video than from anywhere else. Keep up the good work!

captainvideo
Автор

Excellent tutorial! I've spent the last 5 hours using this video along with the one about installing MinGW-w64 and Msys2 to finally get my debugger to run. Learnt a lot in the process. Thanks a mil!

gerhardlourens
Автор

I thank you for your time and effort into making this video. This is an excellent video. Well thought out and the sequence of presentation is very good.

jackmanjls
Автор

So helpful! I am taking CS50 and needed to get C working on VSCode. This worked!

drhf
Автор

After doing "13:27 Configure Task to Build and Run Executable File" this part vs code
"The token '&&' is not a valid statement separator in this version." help

fahidnfl
Автор

Thank you so much for this video. It is highly valuable. It teaches professional C++ software development environment setup (MinGW64 toolchain via MSYS2 and VS Code) in a right way. We are thankful to get educator like you. God bless you!

HimanshuSingh-ovgq
Автор

Thank you so much! This video solved my debugging problem which was lasting for long time.

gibaeklee
Автор

Your instructions are very clear. Thanks for your video. I have subscribed to the channel. By the way, I wish India a speedy end to the covid epidemic. Love from Vietnam ❤❤❤

huongnguyenmanh
Автор

oh my god, i can't believe i found this video this is literally what i've been searching for months.

thatsalot
Автор

Sir, when i try to debug, it says, " launch: program ' directory/debug/outdebug' does not exist. ", how to solve this problem?

sunnychy
Автор

13:09 it doesn't run. The output is just: D:\My C++ Workspace\Hello World>
I did everthing like you except for the folder structure but I don't think that would matter. My path to the Hello World.exe is correct so....any ideas?
(The program is valid because I was able to run it correctly in the Windows cmd.exe)
Thanks,

chumbo
Автор

I am having issue at 13:09 . When I hit enter, Only the text Hello World.exe is displayed. number is 30 Goodbye! is not displayed. Why?

shambhvilokre
visit shbcf.ru