Issue 1472191: pdb 'clear' command doesn't clear selected bp's (original) (raw)
Issue1472191
Created on 2006-04-18 09:49 by jakamkon, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Messages (2) | ||
---|---|---|
msg28275 - (view) | Author: Kuba Kończyk (jakamkon) | Date: 2006-04-18 09:49 |
Pdb 'clear x' command doesn't clear selected breakpoints that are already set: $ ./python -m pdb ../test.py > /home/xyz/python/test.py(3)() -> def t(x): (Pdb) break 5 Breakpoint 1 at /home/xyz/python/test.py:5 (Pdb) break Num Type Disp Enb Where 1 breakpoint keep yes at /home/xyz/python/test.py:5 (Pdb) clear 1 No breakpoint numbered 1 (Pdb) ... for i in numberlist: * if not (0 <= i < len(bdb.Breakpoint.bpbynumber)): print 'No breakpoint numbered', i ... Each i is a string and it's compared to 0 and len(...), so condition * is always True. The fix is trivial: * if not (0 <= int(i) < len(bdb.Breakpoint.bpbynumber)): Fix is in #1472184 | ||
msg28276 - (view) | Author: Georg Brandl (georg.brandl) * ![]() |
Date: 2006-05-03 18:13 |
Logged In: YES user_id=849994 Thanks for the report. This is fixed in rev. 45891, 45892(2.4). Additionally, for such small changes please do not file a bug and a patch report. Opening just one bug and attaching the patch is fine. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:16 | admin | set | github: 43238 |
2006-04-18 09:49:09 | jakamkon | create |