inducer / pudb

Full-screen console debugger for Python
https://documen.tician.de/pudb/
Other
2.97k stars 229 forks source link

source not displayed (linecache filename mismatch) #375

Open dccarson opened 4 years ago

dccarson commented 4 years ago

I'm debugging a Python 3 script, which I typically invoke from the directory it lives in, as:

./fooBar.py parm1

If I instrument my script with a set_trace() call and start the script as above, it hits the breakpoint and stops. However, no source code is displayed. If, on the other hand, I enter the debugger from the command line, as:

python3 -m pudb fooBar.py parm1

and then hit continue, the source is displayed when I reach the set_trace() call.

Things to note:

asmeurer commented 4 years ago

There was a discussion on the mailing list with some thoughts about what might be causing this, but no concrete answers https://lists.tiker.net/hyperkitty/list/pudb@tiker.net/thread/JPH5S5KZBGRUJPSHPA7JXHPDYERLNTVQ/