On 5/9/21 12:55 pm, Amardeep Singh wrote:
Hi Team

If some one has setup to debug cython code can  you please share the details.
I am using ubuntu 20.4 .
Not sure why gdb not picking up breakpoints.

I am able to debug c extensions but not cython code.

Thx


There are a number of ways to set up for debugging. The one that works for me is to do


git clean -xfdd

CFLAGS='-O0 -g3' python runtests.py -b

gdb --args python runtests.py -t file/I/with/the/test/I/want.py


The "git clean" should make sure you are not using pre-compiled c-extensions.

There are variants of this if you are using an IDE or like to use setup.py directly


Matti

_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion

Reply via email to