Is there a way to debug python C++ extensions in Eclipse on Linux?

Hi guys, Is there a way to debug python C++ extensions in Eclipse on Linux? I want to debug a Python script that imports my module mmm.so and be able to step into my C++ code when necessary using Eclipse. I installed CDT and PyDev and tried different configurations but nothing works. Do I need to create different projects? a PyDev project and a CTD project? Do I need to recompile Python with debug symbols? Is there another tool than Eclipse to achieve this? Thanks, Raul Durand

Raul Durand wrote:
Hi guys,
Is there a way to debug python C++ extensions in Eclipse on Linux? I want to debug a Python script that imports my module mmm.so and be able to step into my C++ code when necessary using Eclipse.
I installed CDT and PyDev and tried different configurations but nothing works.
Do I need to create different projects? a PyDev project and a CTD project? Do I need to recompile Python with debug symbols? Is there another tool than Eclipse to achieve this?
Thanks,
Don't know about eclipse, but what I do is: 1. run gdb on /usr/bin/python 2. set bp in the source of the module. gdb will ask about setting bp in module to be loaded in future (or something to that effect), I say yes. 3. run program
participants (2)
-
Neal Becker
-
Raul Durand