Debugging Python with Visual Studio Code (VSCode)

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 เม.ย. 2023
  • In this tutorial, we will guide you through the process of debugging Python code with Visual Studio Code (VSCode). VSCode is a popular code editor with debugging capabilities that can help you find and fix issues in your Python code.
    We will cover the steps required to set up a new Python project, create a new Python 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 Python programming and want to learn how to debug their code using VSCode. By the end of this tutorial, you will have a basic understanding of how to use the debugging features in VSCode to find and fix issues in your Python programs. Let's get started!
    #Python #Debugging #VisualStudioCode #VSCode #ProgrammingTutorial #DebuggingTutorial #CodeEditor #Breakpoints #Variables #Expressions #Runtime #ConsolePrinting #BeginnerFriendly #ProgrammingEducation

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

  • @atriusvinius319
    @atriusvinius319 4 หลายเดือนก่อน +1

    Can i run debugging in step-by -step mode? So that i can see every lines executed gradually. Like a visualize execution in Python Tutor.

  • @industryrule-4080
    @industryrule-4080 10 หลายเดือนก่อน

    Very helpful video. Thanks!

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

    very well explained! thanks

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

    Massively helpful - thanks!

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

    Thank you. very well explained.

  • @louishauger3057
    @louishauger3057 5 หลายเดือนก่อน +2

    While debugging, the strip at the bottom is orange..

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

    Very helpful. About to do Python debugging job interview and this crash course helps me prepare.

  • @vedirah
    @vedirah 10 หลายเดือนก่อน +24

    7 ad slots in an 11 minute video is insane

    • @jewhunterbiden
      @jewhunterbiden 7 หลายเดือนก่อน +17

      Watching youtube without adblocker is insane

    • @EpicSpence
      @EpicSpence 6 หลายเดือนก่อน +2

      He covered in 11 mins what most creators would extend to 5 x 10 min videos each with a minimum of 4 ad rolls each. So technically, you are saved from 13 ads.

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

      @@jewhunterbiden honestly

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

      TH-cam's Business Model is a crazy genius. We pay TH-cam to not show ads and Businesses pay TH-cam to show ads. But I think we should not try to use adblockers or TH-cam Premiums because ads help Content Creators a lot.

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

      @@rajshah7734 i think content creators get money if u watch using premium. Also, they get so very little from ads that i've heard content creators say skip/block the ads and just support them through other ways

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

    how come u have django in ur selection, i dont see mine

  • @scigama71
    @scigama71 11 ชั่วโมงที่ผ่านมา

    Good video thank you

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

    This video deserves a lot more likes and comments.
    Thanks.

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

    Crystl clear explanation thanks

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

    thank you so much

  • @kevinschwab4770
    @kevinschwab4770 22 วันที่ผ่านมา

    thank you !!! Good job !!! u helped me !

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

    Do I need to download an extension before debugging in python. I tried debugging but it did not run

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

      I'm not shure, but I use the python extension from Microsoft, which contains many features and it worked for my debugging.
      Also at minute 3:40, he explains about selecting a debugger, may be you missed it?

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

      You just need the python extension.

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

      @@jimbarino2 sure. I got it now.

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

    Thanks for the explanation

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

    I followed the steps exactly. The code and file name are the same as your video. However when I press "Run and Debug", the program is completed without stop at the breakpoint. The variables, watch and callstack panel prompt up but they are empty.

    • @jr.pierre9940
      @jr.pierre9940 6 หลายเดือนก่อน

      @legendgod did you set up the launch.json for your project? I was having that problem as well

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

    Gracias, me sirvió.

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

    My code execution never stops at break points, any idea what i am missing

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

      maybe you are skipping the breakpoint? if you have
      if a>b:
      print('xxx')
      and a breakpoint at the print statement, but if a

  • @S-kd3hn1
    @S-kd3hn1 หลายเดือนก่อน

    Very well explained

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

    Thank you so much sir

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

    muy bueno tu video chaval

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

    Can you show the real use-case of this python debugging?

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

    This was very basic for debugging. About half of the video was about python development in Vscode.

  • @GustavoOliveira-gp6nr
    @GustavoOliveira-gp6nr 2 หลายเดือนก่อน +3

    that is not pink, it is orange

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

    Very useful. Thank you. What of AI powered debuggers?

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

    This no longer works. Please update.

  • @bhaskarreddy-bd7hz
    @bhaskarreddy-bd7hz 7 หลายเดือนก่อน +1

    you haven't told how to add pythono path to vscode config. thats the basic step if you want to put debugger points. Thanks

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

    You didn't explain whats happening in debugging..just explained options which is not the motto😢

  • @xy_zo8781
    @xy_zo8781 11 ชั่วโมงที่ผ่านมา

    Why do you have to add *running file tutorial* in a debug video, I came here to learn how to debug not how to run my file

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

    deBUG

  • @secretchef29
    @secretchef29 27 วันที่ผ่านมา

    Ad ad ad how much money you want

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

    Debugger explanation is good but rest half of the video is irrelevant.

  • @sheenugoyal20
    @sheenugoyal20 5 หลายเดือนก่อน +1

    You are not helpful in any way , you can't explain anything