[IPython-user] Printing breakpoint list

Nathan Huesken ipython@lonely-star....
Tue Nov 3 00:29:30 CST 2009

On Mon, Nov 02, 2009 at 11:05:27PM +0000, Jon Olav Vik wrote:
> Nathan Huesken <ipython <at> lonely-star.org> writes:
> > Is it somehow possible in ipython/pdb to print a list of the current
> > breakpoints into a file?
> Use the "break" command (with no arguments) inside the debugger.
> http://docs.python.org/library/pdb.html#debugger-commands
> Hope this helps,
> Jon Olav


Tanks for the answer, but how do I know store the output of "break" into
a file (or first into a variable)?

I also discovered:

But it just gives me:
*** TypeError: unbound method get_all_breaks() must be called with Pdb
instance as first argument (got nothing instead)


More information about the IPython-user mailing list