How to debug Cython code in a modern IDE like VSCode?
Asked Answered
S

0

13

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?

Spoilfive answered 16/2, 2021 at 6:34 Comment(3)
this github issue 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.Lattimer
Oh thanks I didn’t see that when searching. Will try it out and report back.Spoilfive
Please do! I'm extremely interested. So far I've been forced to debug the naive way: print statements, logs and error messages.Lattimer

© 2022 - 2024 — McMap. All rights reserved.