You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pdb incorrectly handles a method breakpoint when module not imported #59000
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:
assignee=Noneclosed_at=Nonecreated_at=<Date2012-05-13.15:25:56.212>labels= ['type-bug', 'library']
title='Pdb incorrectly handles a method breakpoint when module not imported'updated_at=<Date2012-05-25.11:55:57.295>user='https://github.com/xdegaye'
In the following test, breakpoint 2 is set incorrectly at line 1 and
pdb does not know how to set a breakpoint on method C.c_foo. However
setting those two breakpoints on both methods is ok after the class
definition has been executed.
Activity
xdegaye commentedon May 13, 2012
In the following test, breakpoint 2 is set incorrectly at line 1 and
pdb does not know how to set a breakpoint on method C.c_foo. However
setting those two breakpoints on both methods is ok after the class
definition has been executed.
=== main.py =================================
=================================================
=================================================
The attached patch fixes the problem. The patch includes a test case.
xdegaye commentedon May 25, 2012
Parsing the modules source seems a better way to fix this problem, see bpo-14913.
gh-59000: Fix pdb breakpoint resolution for class methods when module…
pythongh-59000: Fix pdb breakpoint resolution for class methods when …
[3.13] pythongh-59000: Fix pdb breakpoint resolution for class method…
[3.14] gh-59000: Fix pdb breakpoint resolution for class methods when…
[3.13] gh-59000: Fix pdb breakpoint resolution for class methods when… (
pythongh-59000: Fix pdb breakpoint resolution for class methods when …