Re: breaking out to the debugger (other than x=1/0 !)

2009-10-23 Thread bdb112
That's perfect - and removing the "breakpoint" is not an issue for me as it is normally conditional on a debug level, which I can change from pydb if debuglvl>3: import pydb pydb.set_trace() 'in XXX: c to continue' The text line is a useful prompt (The example here is for pydb which

Re: breaking out to the debugger (other than x=1/0 !)

2009-10-23 Thread Diez B. Roggisch
bdb112 wrote: > After a while programming in python, I still don't know how to break > out to the debugger other than inserting an instruction to cause an > exception. > x=1/0 > > In IDL one woudl write > > stop,'reason for stopping...' > at which point you can inspect locals (as in pdb) and con