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

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

00:00 Introduction
00:51 Check gcc and gdb are installed
02:02 Set up Visual Studio Code Work Space
05:12 Installing C/C++ Extension in VS Code
06:30 Set up Build Task and Run Program
11:51 Configure Task to Build and Run Executable File
19:33 Set up Vs code for debugging
21:33 Debug C Program using a Break Point
23:49 Configure C/C++ Properties

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 C++ 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
Рекомендации по теме
Комментарии
Автор

Tip: If you're using PowerShell as your default terminal (which is mostly the case for newer windows versions unless you have manually tweaked some settings) and are getting an error message after configuring Build and Run task, just set cmd as the default terminal or at 14:33, replace the '&&' with a ';' as && is not recognized by powershell. BTW this is one of the best and most complete tutorials that you can find on VS Code setup.

naveed_snr
Автор

Thank you so much, before watching your video I spent 2 days reading here and there on how to debug. All articles are so full of bs! I was so frustrated, I downloaded Visual Studio Community but couldn't get it to work either. But you solved the problem in 20 mins! Thank you from bottom of my heart.

snehanshourya
Автор

Thanks for these tutorials! Really helpful.

surxo-dkxi
Автор

Thank you for making this video, it helped me so much in setting up the c programming in visual studio code.

Missingndgear
Автор

The best ever video for setup of vs code
I have ever seen
😘🔥🔥🔥
Much appreciated😊😊

chanchalsrajanagrawal
Автор

Man you always fix everything, thank you so much!

lucas-jgce
Автор

Wow, u are amazing! You explain it very details. Thank you.

twotwo
Автор

You are my hero. I have been trying to fix my vs code's .json error for a wile. I actually started using a different program because of it. I like vscode for python and wanted to be able to use c++ on it. but it was giving me .json errors. anyways you fixed it for me with this video. Thank you so much. I would give you a big hug if I could. God bless

rockymountainfacet
Автор

Thanks for every single reply and giving so much time 🙏😍

amolmagar
Автор

My man, i was trying to fix this debugging and executing c program issue for like whole 1 day. I tried many things other youtubers told. all ended with more issues. I am new to programming, i dont know what i was doing. This video fixed all. Thanks. I subscribed

bekzodhakimov
Автор

Yo, this is some of the best programming tutorial I have seen ever. This guy knows his stuff. Thanks man.

javablck
Автор

Congratulations folks you guys have earned a rocket 🚀 science degree

rohitpol
Автор

If you're getting a gdb error, run sudo apt-get install gdb
Only video I've seen that explains what is needed and more. Thank you sir!

atticusfoust
Автор

The most video that i have ever seen about vsc debugging, thanks!!

fatihcay
Автор

Great tutorials, thank you very much!

isabelescarlette
Автор

Hey Man, Really Awesome Video,
I seen lot of videos those all are really dumb,
your video is clearly working in my PC
Compiler Installation video also Really helpful to me,
Thank You So much for this Video...

sandeeppremkumar
Автор

Thank you very much for the detailed information. You got a new suscriber :)

lucasjoseserena
Автор

My debugger works, but a problem appears every time. It says "property console is not allowed" for the launch.json file. It doesn't seem to impact anything at the moment, but do you know what I can do to fix it?

yifeizhou
Автор

Thanks for the info. was able to install the two programs successfully

rogerpark
Автор

In launch.json file when i write
"externalConsole": true, it work fine with other console during debugging but as you did in the video when I put "externalConsole": false, terminal get stucked. It is not printing anything and also not allow to write anything for giving input. Could you help with this? In the video your terminal is working fine during debugging and i want the same.

akshayshah
welcome to shbcf.ru