Created
September 11, 2010 13:19
-
-
Save sevas/575180 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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