11

I'd like to know how people debug their Cython code, do they just use terminal debugging as suggested in the Doc?

This answer suggests it is possible with DDD, not to knock DDD, but I don't want to change my whole workflow for debugging Cython code.

Surely, this must be possible in VSCode?

Daniel Farrell
  • 9,316
  • 8
  • 39
  • 62
  • 1
    [this github issue](https://github.com/microsoft/vscode-cpptools/issues/2900) shows how to attach GDB to PyDB debugger. I guess you need to do the same with the cython extension of GDB detailed in the Cython docs. – ibarrond Feb 16 '21 at 09:16
  • 1
    Oh thanks I didn’t see that when searching. Will try it out and report back. – Daniel Farrell Feb 16 '21 at 09:23
  • Please do! I'm extremely interested. So far I've been forced to debug the naive way: print statements, logs and error messages. – ibarrond Feb 16 '21 at 14:46

0 Answers0