pdb question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tac-tics

    #1

    pdb question

    In the Python debugger (pdb), how do you designate breakpoints at the
    start of methods?
    I've tried:
    break methodName
    break class.methodNam e
    break object.methodNa me

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

  • Fredrik Lundh

    #2
    Re: pdb question

    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.methodNam e
    break object.methodNa me
    >
    but none of these seem to work. What is the trick?
    define "seem to work".

    the "className.meth odName" and "object.methodN ame" 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>

    Comment

    • tac-tics

      #3
      Re: pdb question

      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...@python ware.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.methodNam e
      break object.methodNa me
      >
      but none of these seem to work. What is the trick?define "seem to work".
      >
      the "className.meth odName" and "object.methodN ame" 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>

      Comment

      Working...