[IPython-dev] ipython as a debugger command-line interface?
rocky at gnu.org
Wed Mar 11 05:35:05 EDT 2009
Ok - thanks for the information. I'll use that when I get around to it.
On Wed, Mar 11, 2009 at 3:35 AM, Ville M. Vainio <vivainio at gmail.com> wrote:
> On Tue, Mar 10, 2009 at 11:28 PM, Rocky Bernstein <rocky at gnu.org> wrote:
> > Here's an additional thought along that vein. The way pydbgr gets its
> > commands for the command-line command processor is to import all files in
> > directory, introspect and look for classes that end in "Command" and
> > instantiate each of those. (Now that I write this, better might be to
> > that they are instances of some Command superclass) . Given this, it's
> > possible to add a feature where users can write their own customized
> > debugging commands and put them in a directory and when you start the
> > debugger point to the directory and have the debugger add those
> > debugger commands.
> > I throw this idea out as an alternative to ipython way to add "magic"
> > commands. I'm not that familiar with ipython magic commands, but probably
> > that's the way one would add debugger-specific commands in ipython.
> You can add magics programmatically through
> _ip.expose_magic("mymagic", callable). So these schemes are not
> mutually exclusive.
> Ville M. Vainio
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev