By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,806 Members | 1,350 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,806 IT Pros & Developers. It's quick & easy.

Why doesnt PDB allow me to view the current line?

P: n/a
I have some code that I am trying to debug (Python 2.5.2 on OSX) using
pdb. However, when the code reaches the pdb.set_trace(), it does not
allow me to view the current line:
/Users/chris/Research/ISEC/build/bdist.macosx-10.3-i386/egg/pyrl/reinforcement.py(943)__call__()
(Pdb) n
/Users/chris/Research/ISEC/build/bdist.macosx-10.3-i386/egg/pyrl/reinforcement.py(946)__call__()
(Pdb) l
[EOF]
(Pdb) l
[EOF]

It steps through the code fine, but for some reason returns end-of-
file when I want to look at the code.

Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply

P: n/a
hardcoreUFO schrieb:
I have some code that I am trying to debug (Python 2.5.2 on OSX) using
pdb. However, when the code reaches the pdb.set_trace(), it does not
allow me to view the current line:
>/Users/chris/Research/ISEC/build/bdist.macosx-10.3-i386/egg/pyrl/reinforcement.py(943)__call__()
(Pdb) n
>/Users/chris/Research/ISEC/build/bdist.macosx-10.3-i386/egg/pyrl/reinforcement.py(946)__call__()
(Pdb) l
[EOF]
(Pdb) l
[EOF]

It steps through the code fine, but for some reason returns end-of-
file when I want to look at the code.
It might be that the egg is installed as ZIP. Try either decompressing
it, or re-install using

easy_install -Z <egg>

If it is "your" egg, add zip_safe=False (or such) to the setup.py

Diez
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.