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

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

LearningLad

3 года назад

212,378 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Aditya
Aditya - 12.09.2023 00:21

bhai kitna pach pach krta hai thoda mic se dur hoke bola kr

Ответить
Ury
Ury - 24.08.2023 07:40

it worked

Ответить
Robiul Alom
Robiul Alom - 19.07.2023 21:09

say something

Ответить
Adman Habib Abid
Adman Habib Abid - 11.07.2023 12:53

When I run the debugger the outputs don't show in my terminal, similarly I can't give any inputs. But everything else runs just fine. Does anyone know how to fix it?

Ответить
Simon Scheucher
Simon Scheucher - 24.06.2023 13:35

I have the problem that it does work finally thx first of all but when i run it it runs in the Debug Console not in the terminal

Ответить
T.E.D
T.E.D - 23.05.2023 02:43

when i go to select a build task the gcc.exe doesnt show up? this all started with me trying to fix an error or "Launch: Program <program name> does not exist. any help please??

Ответить
12_0154 Trịnh Hoàng Khang
12_0154 Trịnh Hoàng Khang - 06.05.2023 20:48

Very helpfull!

Ответить
Sajawal Ali
Sajawal Ali - 27.03.2023 18:39

In new version use ; instead of &&

Ответить
Victor Paiva Paulo Neto
Victor Paiva Paulo Neto - 26.03.2023 00:00

bro i love u

Ответить
Satyam Tiwari
Satyam Tiwari - 25.03.2023 16:46

For new user you don't use && use -and

Ответить
khashayar pakfar
khashayar pakfar - 13.03.2023 22:04

How can I do the same process for multiple files C project?

Ответить
JavaBlack
JavaBlack - 10.03.2023 16:20

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

Ответить
Abhijeet
Abhijeet - 19.02.2023 12:26

I'm Having a Debugging error I have searched the whole yt but didn't found a solution for my error somebody please help me out 😭😭😭

Ответить
Uchenna Godfrey
Uchenna Godfrey - 21.01.2023 14:21

Hello,
I'm new to learning C language
Should I follow directly from top to bottom on the playlist? cos some videos are of different years also the numbering on video names.

Please direct me

Ответить
Seth Andrew Dacanay
Seth Andrew Dacanay - 06.01.2023 10:15

it doesn't work when I use shell bro, it only works with cmd terminal, how do I fix this?

Ответить
zaki rahimi
zaki rahimi - 31.12.2022 07:27

great

Ответить
NattyGuy
NattyGuy - 18.12.2022 01:46

I don't have a launch file like shown in the video. Actually after pressing Run and Debug button İt automatically debugged the file without configuration.
Do I need a launch.json file that badly?

Ответить
Michael Stuart
Michael Stuart - 05.12.2022 13:04

Best tutorial! Thank you! Although the task configured to only build and run the file is not working

Ответить
RockyMountainFacet
RockyMountainFacet - 23.11.2022 09:41

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

Ответить
Simo4win
Simo4win - 16.11.2022 23:18

i have i problem, everythings work, it compile and debug, BUT there is a huge problem, i can use breakpopints, so i know he is debugging, but doesn't run the program in the terminal, so i can't put things in the scanf(), so the debug crash when he see it, because has no value in input,
TY for everyone who will help me!

Ответить
MindBlower13
MindBlower13 - 10.11.2022 22:44

if this giving an error like : '&&' is not a valid statement in this version change the && with ;

Ответить
Sevgi Nur Öksüz
Sevgi Nur Öksüz - 31.10.2022 22:49

Debugging fonction runned to my code but launch.json not created. What do you think about it?

Ответить
Ananya Banu
Ananya Banu - 29.10.2022 16:46

Sir after writing the name of the executive file and enter in the terminal I didn't get the line "Enter Your Age"

What is the problem!!

Ответить
Tan KC
Tan KC - 26.10.2022 15:20

{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc build active file",
"command": "/usr/bin/gcc",
"args": [
"-fdiagnostics-color=always",
"-Wall",
"-Wextra",
"-Werror",
"-g3",
"*.c",

],
"options": {
"cwd": "/home/files/here/"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}

Ответить
DaveLight
DaveLight - 25.10.2022 16:45

* The terminal process failed to launch (exit code: -1).
* Terminal will be reused by tasks, press any key to close it.

Ответить
Fatima Tarar
Fatima Tarar - 23.10.2022 22:13

I love you

Ответить
Bhargav Chandpara
Bhargav Chandpara - 06.10.2022 13:40

I am unable to debug the program!! Any one can help me plz !!!i am getting error that module is unable to load !!

Ответить
Daniel Karcz
Daniel Karcz - 01.10.2022 15:23

I am keep getting this error:

cc1.exe: fatal error: cviko\Helloworld.c: No such file or directory
compilation terminated.
c:\Users\Daniel\Desktop\C : The term 'c:\Users\Daniel\Desktop\C' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was includ
ed, verify that the path is correct and try again.
At line:1 char:183
+ ... g\programs\1. cviko\Helloworld.exe ;c:\Users\Daniel\Desktop\C program ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (c:\Users\Daniel\Desktop\C:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

anyone have any ideas?

Ответить
Aydan Price
Aydan Price - 28.09.2022 19:23

I could not possibly explain how many likes I'd give this video if I could. This series has literally saved my life an untold number of times, and I would never have figured out any of this on my own. For that, I have to say THANK YOU.

Ответить
Pratyush
Pratyush - 27.09.2022 23:38

Still problem continues.
Not able to run debugger.

Ответить
КВ-24 Максим Литвин
КВ-24 Максим Литвин - 26.09.2022 16:54

Если вы не понимаете, что происходит в VSCode, или у вас просто какая-то ошибка, то лучше канала, пожалуй, не найти. Искал много русскоязычных объяснялок, только голову поломал. Тут всё кратко, и ясно.

Ответить
512 Akshitha
512 Akshitha - 09.09.2022 16:57

When I run build task it displaying cmd is not recognised and build finished with errors

Ответить
Varun Chaudhary
Varun Chaudhary - 04.09.2022 10:43

on debugging it is not taking input

Ответить
CalcTM
CalcTM - 02.09.2022 07:31

By far the most informative tutorial for VSC

Ответить
Unknwon knight
Unknwon knight - 31.08.2022 20:09

when i try to debug my code i get this error "unable to find executable for "my work space location" and also when i click to run and debug, my vs code didn't show me the configuration option "gcc.exe - Build and debug..."
any solution?

Ответить
Marshall's Weather & Hiking
Marshall's Weather & Hiking - 30.08.2022 18:44

Where the hell does it look for the .exe when you're not compiling a single file. This is so annoying and confusing.

Ответить
Surabhi seth
Surabhi seth - 29.08.2022 08:16

Thank you for the tutorial. Its really helpful. Can you please share the link of tutorial using the Code runner extension?

Ответить
Parshuram Malpani
Parshuram Malpani - 25.08.2022 16:15

getting error of preLunchTask"c/c++:gcc.exe build active file terminated with error" while clicking on run n debug

Ответить
ranjana mahto
ranjana mahto - 16.08.2022 16:10

What should I do if it's printing hello world instead of running the file

Ответить
Raam
Raam - 02.08.2022 09:53

How to set default terminal as cmd?

Ответить
tharun kumar
tharun kumar - 17.07.2022 16:53

Hey iam problem in creating exe file

Ответить
Sanket Rao
Sanket Rao - 15.07.2022 17:04

works for OS X?

Ответить
vidiyal
vidiyal - 27.06.2022 23:35

Hi, Thanks for this useful video. when I tried to build an executable file(same program in try C language), I got an error"gcc.exe: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory'' can you explain plz...

Ответить
All In One
All In One - 25.06.2022 22:14

Sir...it showing the terminal process failed to launch(exit code:-1)

Ответить
Kids Entertainment
Kids Entertainment - 11.06.2022 22:12

when I launch my program it shows error outDebug does not exist

Ответить