O'Reilly logo

Learning Cython Programming by Philip Herron

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Debugging Cython

One side effect of using Cython is that it can be fairly tricky to debug your extended applications using tools like GNU Project Debugger (GDB), but that's not to say you cannot do it. You have several choices on what you can do. First and foremost, I must stress on the point that a good practice is to make sure your interfaces between the C and Python code are kept as simple as possible so that what's going on is much clearer. As for me, though I've been developing with C for a long time in large projects, I still am not that much of a user of GDB.

Using GDB on your code

Debugging tools aren't my biggest priority; my GDB sessions are mostly for thread analysis and backtraces. These days, I don't generally make full use ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required