[ python-Bugs-1643369 ] function breakpoints in pdb

SourceForge.net noreply at sourceforge.net
Wed Jan 24 11:32:55 CET 2007


Bugs item #1643369, was opened at 2007-01-24 10:22
Message generated for change (Settings changed) made by decitre
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1643369&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
>Priority: 6
Private: No
Submitted By: decitre (decitre)
Assigned to: Nobody/Anonymous (nobody)
Summary: function breakpoints in pdb

Initial Comment:
pdb.Pdb.find_function method is not able to recognize class methods, since the regular expression it uses only looks for "def" at beginning of lines.

Please replace
r'def\s+%s\s*[(]' % funcname
with
r'\s*def\s+%s\s*[(]' % funcname

test file in attachment. this file shows that pdb can set a breakpoint on foo but not on readline function.

Regards, Emmanuel
www.e-rsatz.info

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1643369&group_id=5470


More information about the Python-bugs-list mailing list