I have a C ++ project with a SWIG-created Python interface that I create with CMake. Now I'm trying to find a convenient way to debug my mixed Python / C ++ code. I can get the error stack trace using gdb, but I would like to have some more attractive features, such as the ability to execute code and set breakpoints, for example, using Eclipse.
Using the Eclipse generator for CMake, I can generate a project that I can import into Eclipse. This works great, and I can also go through clean C ++ executables. But then the problem begins.
First of all, I cannot build a Python interface from within Eclipse. From the command line, I just do "make python", but there is no "python" in the Eclipse project.
Secondly, as soon as I compiled the Python interface, I donβt know how to get through the Python script containing the calls for my wrapped C ++ classes. Eclipse has debugging for both Python and C ++, but can they be combined?
source share