def debugger(self,force=False):
if not (force or self.call_pdb):<EOL><INDENT>return<EOL><DEDENT>if not hasattr(sys,'<STR_LIT>'):<EOL><INDENT>error('<STR_LIT>')<EOL>return<EOL><DEDENT>if debugger.has_pydb:<EOL><INDENT>from pydb import pm<EOL><DEDENT>else:<EOL><INDENT>pm = lambda : self.InteractiveTB.debugger(force=True)<EOL><DEDENT>with self.readline_no_record:<EOL><INDENT>pm()<EOL><DEDENT>
Call the pydb/pdb debugger.

        Keywords:

          - force(False): by default, this routine checks the instance call_pdb
          flag and does not actually invoke the debugger if the flag is false.
          The 'force' option forces the debugger to activate even if the flag
          is false.