[IPython-user] setting breakpoints in code

Barry Wark barrywark@gmail....
Mon Jan 28 17:30:48 CST 2008


Give this a try:

from IPython.Debugger import Tracer; debugger = Tracer()

debugger() #add this line where you want to break


On Jan 26, 2008 8:08 AM, Robin <robince@gmail.com> wrote:
> Hello,
> I would be able to set breakpoints in my code like using
> pdb.set_trace(), but so that ipython pulls up the more interactive pdb
> session with color and tab completion (like with %pdb on).
> Does anyone know what I should put in place of pdb.set_trace() to
> achieve this effect?
> (I know about %run -d -b<line>, but often I want to put the break in
> another module that is called from the script I am running, so it
> doesn't work).
> Thanks,
> Robin
> _______________________________________________
> IPython-user mailing list
> IPython-user@scipy.org
> http://lists.ipython.scipy.org/mailman/listinfo/ipython-user

More information about the IPython-user mailing list