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.
Created on 2007年01月24日 10:22 by decitre, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| try.py | decitre, 2007年01月24日 10:22 | function breakpoint testcase | ||
| Messages (3) | |||
|---|---|---|---|
| msg31078 - (view) | Author: decitre (decitre) | Date: 2007年01月24日 10:22 | |
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 |
|||
| msg31079 - (view) | Author: Ilya Sandler (isandler) | Date: 2007年03月08日 06:25 | |
I think it's a bit more complicated than it seems: it's more than common for different classes to have methods with the same name. So looking for "\s*def func" will just grab the first matching method...Which is probably not what one would want...And dealing with multiple matches might be more hassle than it's worth.. So maybe the current behaviour should be kept as is NOTE: you CAN currently set breakpoints in methods by doing b Class.method |
|||
| msg56046 - (view) | Author: Michael Hoffman (hoffman) | Date: 2007年09月19日 20:18 | |
Agree with isandler. This is not a bug. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:22 | admin | set | github: 44499 |
| 2008年12月05日 09:37:50 | georg.brandl | set | status: open -> closed resolution: not a bug |
| 2007年09月20日 17:39:57 | jafo | set | severity: normal -> minor |
| 2007年09月20日 17:38:34 | jafo | set | priority: high -> low type: enhancement title: function breakpoints in pdb -> pdb find_function does not find Class methods. |
| 2007年09月19日 20:18:57 | hoffman | set | nosy:
+ hoffman messages: + msg56046 |
| 2007年01月24日 10:22:47 | decitre | create | |