-
-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pdb cannot access source code in zipped packages. #48451
Comments
With attached test.zip and svn revision 67006, $ ./python.exe test.zip
> /Users/sasha/Work/python-svn/trunk/test.zip/__main__.py(2)f()
(Pdb) l
[EOF] With pdb.patch: $ ./python.exe test.zip
> /Users/sasha/Work/python-svn/trunk/test.zip/__main__.py(2)f()
-> pass
(Pdb) l
1 def f():
2 -> pass
3
4 import pdb
5 pdb.runcall(f)
6
7
[EOF] |
Just to confirm - this is specific to __main__.py right? The problem is actually with runpy not being able to set __file__ |
No, I only used __main__.py to make it easy to reproduce the problem.
You must be thinking bpo-4197 where two distinct problems are My patch, doctest-1.patch works around the first issue and fixes the second. |
Off-topic: How to report a bug tracker bug? The e-mail I sent in response to Nick's post started with: """
No, I only used __main__.py to make it easy to reproduce the problem. But the first two lines got eaten by the tracker. Should I open an |
Issues with the tracker itself go in the meta tracker (see the "Report And you're right that the get_filename() limitation is only part of the |
The patch hasn't been accepted for the trunk, yet, so it is out of scope |
Fixed for 2.7 in r67750. Will be ported to 2.6, 3.0 and 3.1. |
Final revisions for fix: |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: