How to debug cython in and IDE
Question: I am trying to debug a Cython code, that wraps a c++ class, and the error I am
hunting is somewhere in the C++ code.

It would be awfully convenient if I could somehow debug as if it were written
in one language, i.e. if there's an error in the C++ part, it show me the
source code line there, if the error is in the python part it does the same.

Right now I always have to try and replicate the python code using the class
in C++ and right now I have an error that only occurs when running through
python ... I hope somebody can help me out :)


Answer: It's been a while for me and I forgot how I exactly did it, but when I was
writing my own C/C++ library and interfaced it with swig into python, I was
able to debug the C code with [DDD](https://www.gnu.org/software/ddd/). It was
important to compile with debug options. It wasn't great, but it worked for
me. I think you had to run `ddd python` and within the python terminal run my
faulty C code. You would have to make sure all linked libraries including
yours is loaded with the source code so that you could set breakpoints.

