Debugging Python in VSCode - 01 - Intro to Debugging in VSCode

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 พ.ค. 2020
  • This video is part of my comprehensive 58+ hour Python course available on Udemy:
    www.udemy.com/course/learn-to...
    Debugging allows a developer to walk through the execution of a program step-by-step or line-by-line. In this introductory video, we'll take a look at how to use the debugging tools built into Visual Studio Code.

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

  • @ycwang155
    @ycwang155 2 ปีที่แล้ว +14

    0:00 Debug: running the code line by line
    3:50 breakpoint: the programme will stop **right before** the break point line
    4:57 breakpoint panel: shows the line the breakpoint is on
    6:13 remote control buttons: continue button → move to the next breakpoint
    7:40 Variable Panel: local & global variables
    9:29 Call Stack panel: shows the pause on specific breakpoint, modules shows the file currently in

    • @boknows8263
      @boknows8263 2 ปีที่แล้ว +2

      you are a great teaching assistant to the professor

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

      King

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

    thank you man! finally cracking this, feel like i've been living under the rock with all these bugs lol

  • @ScottCov
    @ScottCov 2 ปีที่แล้ว

    Boris-Exactly what I was looking for..Great video

  • @user-qf1zg3xw7v
    @user-qf1zg3xw7v ปีที่แล้ว +1

    very clear and concise. Thank you so much

  • @Justin-zw1hx
    @Justin-zw1hx 11 หลายเดือนก่อน

    beautifully done, keep doing the good work!

  • @marlenk.5950
    @marlenk.5950 2 ปีที่แล้ว +3

    super clear totorial, really helped me a lot, thank you

  • @shibanandamohanta6842
    @shibanandamohanta6842 3 ปีที่แล้ว

    Thanks Boris, It is helpful for us.

  • @judeleon8485
    @judeleon8485 3 ปีที่แล้ว

    Nice tutorial. Thanks Boris

  • @Naz-yi9bs
    @Naz-yi9bs 3 ปีที่แล้ว +1

    Amazing! Finally found a food explanation lol.... Thank you.

    • @tornoutlaw
      @tornoutlaw 3 ปีที่แล้ว +3

      Someone was hungry... :P

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

    Nice tutorial, thank you!

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

    Thank you Boris

  • @QQ-lp8id
    @QQ-lp8id ปีที่แล้ว

    very detailed and thank you

  • @pleabargain
    @pleabargain 3 ปีที่แล้ว

    Thank you. Very helpful.

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

    Thanks Boris, why didn't `final_value` appear as a variable in the side pane?

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

    That is very good, thank you.

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

    Excellent. Thank you

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

    Good video. Although putting a BP on line 10 would have been useful for rookies, it would have shown them that the debugger skips the function definition straight to the function call. Your set up shows the debugger moving through the BPs in the order they appear in the program, which is misleading.

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

    Thanks for the video. Subscribed on the spot.

  • @Naz-yi9bs
    @Naz-yi9bs 3 ปีที่แล้ว

    Is it possible to debug Python code with the Command Land Interface using VSC? Can't find any information on it on the web that gives us the list of commands, if anyone can help with this, would be greatly appreciated, thanks in advance.

  • @HitBoxMaster
    @HitBoxMaster 2 ปีที่แล้ว

    How do I make the output window have that "Code" option?

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

    good content , we can improve the visuals the font is very small

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

    Can you do a video on debug dash with callback? Thanks

  • @Naz-yi9bs
    @Naz-yi9bs 3 ปีที่แล้ว +1

    Really like your theme, which theme is it?
    Thank you.

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

      Thanks! The VSCode theme is Winter is Coming.

  • @AbhishekSen
    @AbhishekSen 2 ปีที่แล้ว

    How do we debug multiple files?

  • @bat1185
    @bat1185 2 ปีที่แล้ว

    I'm having some issues debugging python files on vsc, it seems the debugger just ignores the breakpoints.. any idea what might this be? I've checked the json configuration file, eveyrthing seems ok.
    VSCode version 1.58.2
    Python 3.9

    • @khaledkhan1439
      @khaledkhan1439 2 ปีที่แล้ว

      "stopOnEntry": true
      put this in configration

    • @vijayalakshmib3409
      @vijayalakshmib3409 2 ปีที่แล้ว

      no one gives answer. we should find solution on ourself

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

      @@vijayalakshmib3409 do you figure out any solution?

  • @watersphere304
    @watersphere304 3 ปีที่แล้ว

    hi what is your theme your using?

    • @borispaskhaver
      @borispaskhaver  3 ปีที่แล้ว

      The VSCode theme is Winter is Coming.

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

    Why did your code output two times? It should only display one

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

      the first time is when line final_value=do_fun_stuff() is executed. the result of the function execution is returned to final_value but in the course of execution and return of the function result the print statements are executed. final_value only receives the return value of 25 but the print statements have to happen before that. that is unavoidable. the second time is for print(do_fun_stuff()). the do_fun_stuff() inside the print statement is a second call to that function. so the function will run a second time, the print statements will be executed a second time and then the function result which is the value 25 will be returned to the print statement and be printed. whenever the function is called those print statements are going to happen.

  • @TOZXi
    @TOZXi 3 ปีที่แล้ว

    I don't have python : current file

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

    your screen shows too much information still there are lots of spaces left in my case it looks like debugging in my phone screen