Command-Line Python Debugging with pdb

Поділитися
Вставка
  • Опубліковано 8 вер 2024
  • In this video, we learn how to debug Python code in the command-line, which is especially useful for those of you, who prefer a lightweight coding setup.
    ◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
    📚 Programming Books & Merch 📚
    🐍 The Python Bible Book: www.neuralnine...
    💻 The Algorithm Bible Book: www.neuralnine...
    👕 Programming Merch: www.neuralnine...
    🌐 Social Media & Contact 🌐
    📱 Website: www.neuralnine...
    📷 Instagram: / neuralnine
    🐦 Twitter: / neuralnine
    🤵 LinkedIn: / neuralnine
    📁 GitHub: github.com/Neu...
    🎙 Discord: / discord
    🎵 Outro Music From: www.bensound.com/
  • Наука та технологія

КОМЕНТАРІ • 23

  • @hulkiciray4281
    @hulkiciray4281 2 дні тому

    Lucky to have this good explanation. Thanks brother

  • @rishikeshagrawani7920
    @rishikeshagrawani7920 Рік тому +3

    Beautiful explanation Brother!

  • @georgybachakashvili5344
    @georgybachakashvili5344 10 місяців тому

    also it's good to know that you can use every or almost every pdb command by its 1st letter and for print you can just type the variable name like in interactive mode of python interpreter

    • @MerinNakarmi
      @MerinNakarmi 2 місяці тому

      can't use c for clear, because c means continue.

  • @paulthomas1052
    @paulthomas1052 Рік тому +3

    Thanks - very useful as usual !

  • @marcuswest8085
    @marcuswest8085 Рік тому +1

    Super. Subscribed. You are on the ball

  • @user-yo7xm4qx8e
    @user-yo7xm4qx8e Рік тому +1

    that's what i was looking for. Thanks

  • @Rabixter
    @Rabixter 4 дні тому

    How effective is PDB for codebases with hundreds of files, and you're not just debugging the "main.py" with a basic example? What if the error I want to debug is within a different file. And how can I save breakpoints so I can re-run PDB again using the same breakpoints? Is there a way to do it without cluttering the code with "breakpoint()" statements?

  • @rockrollandfunk2691
    @rockrollandfunk2691 22 дні тому

    Can the execution line be designated/highlighted in some fashion?

  • @ranggatohjaya5471
    @ranggatohjaya5471 Рік тому +1

    Thanks

  • @nangelo0
    @nangelo0 Місяць тому

    Is it usable in big project with lot of imports?

  • @guilherme5094
    @guilherme5094 Рік тому +1

    👍Thanks.

  • @federico2058
    @federico2058 Рік тому +3

    ⭐⭐⭐⭐⭐

  • @codewithtaus
    @codewithtaus Рік тому +1

    ♥️♥️♥️♥️♥️

  • @BrendaHernandez-s8s
    @BrendaHernandez-s8s 3 дні тому

    667 Rogahn Causeway

  • @mohdqayyoomkhan2446
    @mohdqayyoomkhan2446 9 місяців тому

  • @user-jh8od5jl1c
    @user-jh8od5jl1c 10 місяців тому

    Hi Need some help:
    I have a python executable say prog1.exe...
    I want to debug this executable using pdb ... How to do it ?

    • @user-jh8od5jl1c
      @user-jh8od5jl1c 10 місяців тому

      or any other way ?

    • @Baseballchampion
      @Baseballchampion 9 місяців тому +1

      You won't be able to use the Python Debugger (pdb) to debug a .exe file. This file type is a Windows executable file and is not a python file.

    • @user-jh8od5jl1c
      @user-jh8od5jl1c 9 місяців тому

      You are right@@Baseballchampion .. However I am asking about the python executable file created by using PyInstaller library.

  • @betapacket
    @betapacket Рік тому +1

    2nd

  • @dancordoba7777
    @dancordoba7777 Рік тому

    Thanks