How to debug cython in and IDE
<p>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.</p>

<p>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.</p>

<p>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 :)</p>

<p>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 <a href="https://www.gnu.org/software/ddd/" rel="nofollow">DDD</a>. It was important to compile with debug options. It wasn't great, but it worked for me. I think you had to run <code>ddd python</code> 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. </p>

python c++ debugging cython