[IPython-dev] debugging python c modules

Hans Meine hans_meine at gmx.net
Fri Sep 3 04:08:32 EDT 2010

Am Freitag 03 September 2010, 01:50:09 schrieb Brian Granger:
> On Thu, Sep 2, 2010 at 7:09 AM, Satrajit Ghosh <satra at mit.edu> wrote:
> > hi all,
> > 
> > is there a python debugger that can step me through c code if it was
> > being used? or do i need to launch python using xcode/gdb/msvc and put
> > breakpoints in the code. if the latter, can i launch ipython instead of
> > system python?
> No, the python debugger knows nothing about C.  You will need to use
> traditional C debugging tools for that part of your code.

Interesting idea.  Wouldn't it be possible to support attaching gdb to the 
process from python?  Then, it could even be recognized when the call stack 
goes back into python, in order to issue 'continue' and return control to the 

Wouldn't that be terrific?  The thought deserves some really good reasons to 
be abandoned at least.. ;-)

Have a nice day,

More information about the IPython-dev mailing list