Created
September 11, 2010 11:08
-
-
Save sevas/575099 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 | |
> /home/sevas/code/python/hello_pdb.py(1)() | |
-> import psyco | |
(Pdb) c | |
Traceback (most recent call last): | |
File "/usr/bin/pdb", line 1213, in main | |
pdb._runscript(mainpyfile) | |
File "/usr/bin/pdb", line 1138, in _runscript | |
self.run(statement, globals=globals_, locals=locals_) | |
File "/usr/lib/python2.5/bdb.py", line 366, in run | |
exec cmd in globals, locals | |
File "", line 1, in | |
File "hello_pdb.py", line 11, in | |
print foo(i) | |
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 | |
*** NameError: name 'arg' is not defined | |
(Pdb) locals() | |
{} | |
(Pdb) q | |
Post mortem debugger finished. The hello.py will be restarted | |
> /home/sevas/code/python/hello_pdb.py(1)() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment