[IPython-dev] IPython winpdb interface

Laurent Dufréchou laurent.dufrechou at gmail.com
Mon Mar 24 12:42:36 EDT 2008

Hi ville,

That's a GOOD idea :)
I'm used to debug my script with winpdb crossplatform debugger and I'm quite
happy to listen this :)

Does the %wpdb will:
- launch the winpdb GUI or
- only the server and we will have to launch the winpdb gui and attach to
the server manually or 
- usage is only via rdpb server without winpdb GUI?

What are your plan about the usage scenario??

-----Message d'origine-----
De : ipython-dev-bounces at scipy.org [mailto:ipython-dev-bounces at scipy.org] De
la part de Ville M. Vainio
Envoyé : lundi 24 mars 2008 10:15
À : Nir; ipython-dev Mailing list
Objet : Re: [IPython-dev] IPython winpdb interface

[CC-ing to ipython-dev, about adding winpdb support to IPython]

On Mon, Mar 24, 2008 at 1:31 AM, Nir <nir at winpdb.org> wrote:

>  Lets start with solving your initial scenario.
>  Can you describe how is such an ipython session supposed to look like?

If you now execute

%run -d test.py

IPython now sets the breakpoint at start of test.py and launches it in
pdb, running the test.py in ipython process.

I'd like to add a new magic command %wpdb (in an extension, say
ipy_winpdb), so you can do

%wpdb test.py

which will do the same thing, i.e. launch test.py in the ipython
process, with rpdb2 breakpoint at start of the script. The rpdb2
should only be started once in the IPython process.

Likewise, if the ipy_winpdb extension is loaded and post-mortem
debugging is enabled, hitting an exception would break rpdb2 at the

All of this is pretty easy in ipython side, we only need  API support
in rpdb2 module to create a breakpoint at first valid position in a
file on file system.

Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'
IPython-dev mailing list
IPython-dev at scipy.org

No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.21.8/1340 - Release Date: 23/03/2008

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.21.8/1340 - Release Date: 23/03/2008

More information about the IPython-dev mailing list