Skip to content

Instantly share code, notes, and snippets.

@sevas
Created September 11, 2010 13:19
Show Gist options
  • Save sevas/575180 to your computer and use it in GitHub Desktop.
Save sevas/575180 to your computer and use it in GitHub Desktop.
$ pdb hello_pdb.py
*** Info : Psyco module replaced with pdb_psyco_stub
> /home/sevas/code/python/hello_pdb.py(1)()
-> import psyco
(Pdb) c
Traceback (most recent call last):
...snip...
File "hello_pdb.py", line 7, in foo
1/0
ZeroDivisionError: integer division or modulo by zero
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program
> /home/sevas/code/python/hello_pdb.py(7)foo()
-> 1/0
(Pdb) arg
0
(Pdb) locals()
{'i': 0, 'k': 0, 'j': 0, 'arg': 0}
(Pdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment