This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author decitre
Recipients
Date 2007-01-24.10:22:47
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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
History
Date User Action Args
2007-08-23 14:51:29adminlinkissue1643369 messages
2007-08-23 14:51:29admincreate