Skip to content

Instantly share code, notes, and snippets.

@preetampvp
Last active March 21, 2017 10:56
Show Gist options
  • Save preetampvp/518d555203002bc8ff9ff4cf266e01bf to your computer and use it in GitHub Desktop.
Save preetampvp/518d555203002bc8ff9ff4cf266e01bf to your computer and use it in GitHub Desktop.
python pdb debbuger
import pdb
pdb.set_trace()

In debugger commands

l - list current line of code

n - to go step over

s - to step into

w - to print call stack

b <module>/<filename>:<line number> / <function> - to set a breakpoint

c - to continue

r - to stepout

h <command> - show help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment