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
Python 3 pdb: shows internal code, breakpoints don't work #50376
Comments
I have a simple test file, test01.py, with this output: print("Line 1")
print("Line 2")
print("Line 3")
$
$ # Now try debugging it.
$ python3.0 -mpdb test01.py
--Return--
> /home/ericp/opt/Python-3.0.1/lib/python3.0/io.py(762)closed()->False
-> return self.raw.closed
(Pdb) b test01.py:4
Breakpoint 1 at /home/ericp/lab/Python-3.0.1/test01.py:5
(Pdb) r
--Return--
> /home/ericp/opt/Python-3.0.1/lib/python3.0/io.py(1471)closed()->False
-> return self.buffer.closed
(Pdb) c
line 1
line 2
line 3
The program finished and will be restarted Two main problems:
|
Similar problem with 3.1rc1: C:\...>c:\Python31rc1\python.exe -m pdb hello01.py
(Pdb) b
|
Why has this not been resolved yet? Not having a working debugger is a |
Attached patch confirmedly fixes this. Will commit as soon as svn is |
Reading this patch, is it normal that the file is opened in text mode |
That's a good question :) A quick test shows that exec() does honor coding cookies in code given |
Fixed in r74366, and merged back to 3.1 branch in r74367. |
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: