Best practice to debug the cython part of the code? #513
-
Hi, Great code base! I am trying to debug through the code just to get a real feeling of how it runs. Could you please let me know what is the best practice to debug the cython code? I tried to build with DEBUG_MODE=True, but it seems this variable is not used any where in Thanks for helping. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi Zhe, Thanks for your kind feedback and interest in the project! Apologies for taking so long to respond. It's a great question which has been asked a few times now. I had another hunt around for any good IDE support for debugging Cython code. I'm using PyCharm myself, and it looks like the issue didn't receive any traction (asked 9 years ago so lets not hold our breath). Someone asked the question again in 2019, and they were asked to upvote the above linked issue. This leaves us with the recommendations in the Cython docs: Which looks like manually running I did however spend some time cleaning up the So building in debug mode should allow debugging as per the Cython docs if you still wanted to give that a try.
Going forward we'll be slowly moving away from Cython as the 'core systems language', and towards Rust. Hope this helps! |
Beta Was this translation helpful? Give feedback.
Hi Zhe,
Thanks for your kind feedback and interest in the project!
Apologies for taking so long to respond. It's a great question which has been asked a few times now. I had another hunt around for any good IDE support for debugging Cython code. I'm using PyCharm myself, and it looks like the issue didn't receive any traction (asked 9 years ago so lets not hold our breath).
https://youtrack.jetbrains.com/issue/PY-9476
Someone asked the question again in 2019, and they were asked to upvote the above linked issue.
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360003478920-Is-it-possible-to-debug-a-cython-code-through-pycharm-
This leaves us with the recommendations in the …