How To Debug Cython In An Ide
I am trying to debug 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 w
Solution 1:
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. 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.
Post a Comment for "How To Debug Cython In An Ide"