Text-based data inspector for Python?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sat Jan 26 19:20:21 EST 2008


En Fri, 25 Jan 2008 12:28:08 -0200, kj <socyl at 987jk.com.invalid> escribi�:

> The one thing I couldn't
> find, and would greatly miss if not available, is the ability to
> set breakpoints by inserting a particular indication right in the
> code.  In the Perl debugger one can insert something like the
> following anywhere in the code:
>
>   $DB::single = 1;
>
> When such a line executes, the debugger immediately switches to
> single-step mode.  It's a very flexible technique, and I like it

I think that pdb.set_trace() does what you want.

-- 
Gabriel Genellina




More information about the Python-list mailing list