By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,941 Members | 1,789 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,941 IT Pros & Developers. It's quick & easy.

pdb question

P: n/a
In the Python debugger (pdb), how do you designate breakpoints at the
start of methods?
I've tried:
break methodName
break class.methodName
break object.methodName

but none of these seem to work. What is the trick?

Nov 26 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
tac-tics wrote:
In the Python debugger (pdb), how do you designate breakpoints at the
start of methods?
I've tried:
break methodName
break class.methodName
break object.methodName

but none of these seem to work. What is the trick?
define "seem to work".

the "className.methodName" and "object.methodName" forms seem to work
just fine to me (assuming that the class or object has been defined, of
course).

if nothing else works, you can use the line or file:line syntax.

</F>

Nov 26 '06 #2

P: n/a
Strange. It seems to be working just fine now. Maybe I wasn't waiting
for all the symbols to be defined before setting my breakpoint.

On Nov 26, 2:41 pm, Fredrik Lundh <fred...@pythonware.comwrote:
tac-tics wrote:
In the Python debugger (pdb), how do you designate breakpoints at the
start of methods?
I've tried:
break methodName
break class.methodName
break object.methodName
but none of these seem to work. What is the trick?define "seem to work".

the "className.methodName" and "object.methodName" forms seem to work
just fine to me (assuming that the class or object has been defined, of
course).

if nothing else works, you can use the line or file:line syntax.

</F>
Nov 26 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.