-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Pdb does not stop at a breakpoint #58956
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
Comments
When a breakpoint is set in one of the frames of the frame stack, Pdb ==== main.py ================================ import bar
def foo():
bar.bar()
x = 1
foo()
==== bar.py ==================================
def bar():
pass ================================================= $ python3 -m pdb main.py
> /path_to/main.py(1)<module>()
-> import bar
(Pdb) import sys; print(sys.version)
3.2.2 (default, Dec 27 2011, 17:35:55)
[GCC 4.3.2]
(Pdb) break bar.bar
Breakpoint 1 at /path_to/bar.py:1
(Pdb) continue
> /path_to/bar.py(2)bar()
-> pass
(Pdb) break main.py:5
Breakpoint 2 at /path_to/main.py:5
(Pdb) continue
The program finished and will be restarted
> /path_to/main.py(1)<module>()
-> import bar
(Pdb) quit ================================================= The attached patch fixes this problem. A test case is included in the Note that the trace function does not need anymore to be set in all |
Uploaded pdb_default_2.patch that corrects the initial patch: the |
…a new breakpoint (pythonGH-124454) (cherry picked from commit 12eaadc) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
…a new breakpoint (pythonGH-124454) (cherry picked from commit 12eaadc) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Fixed in #124454 |
(cherry picked from commit 767c89b) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
…a new breakpoint (pythonGH-124454) (cherry picked from commit 12eaadc) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
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:
Linked PRs
The text was updated successfully, but these errors were encountered: