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

ความคิดเห็น • 39

  • @tomeck.y2239
    @tomeck.y2239 ปีที่แล้ว +64

    Preparing debug configuration starts from 8:30

    • @gmd2455
      @gmd2455 9 หลายเดือนก่อน +1

      Thanks bro

    • @nabodas9138
      @nabodas9138 2 หลายเดือนก่อน +1

      thanks

    • @Anmol-h8z
      @Anmol-h8z 2 หลายเดือนก่อน

      Thanks

  • @Paivren
    @Paivren ปีที่แล้ว +33

    None of this works. You need to explan how to to properly set up the .json files. You only explain the easy part.

    • @viveksaini1304
      @viveksaini1304 ปีที่แล้ว +1

      Same problem bro

    • @naftalemdaniel762
      @naftalemdaniel762 11 หลายเดือนก่อน +2

      Bro is done 😂

    • @VikasPoonia
      @VikasPoonia 9 หลายเดือนก่อน

      Mine just work fine. But I am using Pop_OS instead of Windows OS.

    • @AjaySharaj
      @AjaySharaj 8 หลายเดือนก่อน

      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.

    • @riodak6243
      @riodak6243 7 หลายเดือนก่อน

      Did you find any solution

  • @ClaudiuLucianLupu
    @ClaudiuLucianLupu 9 หลายเดือนก่อน +9

    this video is unnecessarily long

  • @svishu4803
    @svishu4803 ปีที่แล้ว

    Complete guide for using an extension ❤

  • @manoharsagunthalla9215
    @manoharsagunthalla9215 ปีที่แล้ว

    Thank you very much for sharing. Will you please tell me how to change from c++ to phython program code writing?

  • @vipulkumar6059
    @vipulkumar6059 8 หลายเดือนก่อน

    sir but g++ is not coming in my vs code

  • @adamfit9158
    @adamfit9158 ปีที่แล้ว

    Nothing try to run int num =5 ; in debug console like python for example it will not work.

  • @AmrAhmed22222
    @AmrAhmed22222 11 หลายเดือนก่อน +1

    thank u bro

  • @merion2162
    @merion2162 ปีที่แล้ว +1

    Lifesaver

  • @letsexploreourselves4002
    @letsexploreourselves4002 2 หลายเดือนก่อน

    Not Working ,please upload new video

  • @letsexploreourselves4002
    @letsexploreourselves4002 2 หลายเดือนก่อน

    try to make short video

  • @gufranhasan6477
    @gufranhasan6477 7 หลายเดือนก่อน

    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

  • @letsexploreourselves4002
    @letsexploreourselves4002 2 หลายเดือนก่อน +4

    I don't have enough time to watch your long video.

  • @sarunbudhathokichhettri8567
    @sarunbudhathokichhettri8567 2 หลายเดือนก่อน

    I had extension.json build only??

  • @omleen3187
    @omleen3187 ปีที่แล้ว +4

    Your explanation is awesome! Thank you so much!

  • @AjaySharaj
    @AjaySharaj 8 หลายเดือนก่อน

    Thank you.😁

  • @Siddik-ko8ol
    @Siddik-ko8ol หลายเดือนก่อน

    thnaks bro

  • @Dhanush-zj7mf
    @Dhanush-zj7mf 8 หลายเดือนก่อน

    watch it at 2x

  • @chitrakshsuri8587
    @chitrakshsuri8587 9 หลายเดือนก่อน +4

    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?

    • @Chief_Avy
      @Chief_Avy 5 หลายเดือนก่อน

      yes this one is on my also it was working fine before any idea how u solved it

    • @نسيبهعبدالله-ف8ر
      @نسيبهعبدالله-ف8ر หลายเดือนก่อน

      Did you solved it ?

    • @chitrakshsuri8587
      @chitrakshsuri8587 หลายเดือนก่อน

      @@نسيبهعبدالله-ف8ر Nope brother

    • @yahyapacha787
      @yahyapacha787 หลายเดือนก่อน

      Did you solve it😂

  • @ambergris5211
    @ambergris5211 10 หลายเดือนก่อน

    thank you it's run 💖

  • @boruto-xj9pi
    @boruto-xj9pi 10 หลายเดือนก่อน

    thank u bro

  • @firiasu
    @firiasu 9 หลายเดือนก่อน

    Installing MinGW and GDB on Windows is a most hard part...

    • @VikasPoonia
      @VikasPoonia 9 หลายเดือนก่อน

      Better move to opensource Operating system. Then you won't have to install anything.

    • @firiasu
      @firiasu 9 หลายเดือนก่อน

      @@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.

  • @aseditzx4848
    @aseditzx4848 9 หลายเดือนก่อน

    Thank you so Much. It is very helpful