[Numpy-discussion] Help needed GDB

Amardeep Singh amardeepjk at gmail.com
Tue Dec 29 00:55:03 EST 2020


Hi All,

I am trying to debug c code of numpy via gdb.Can someone help me with this?
i am getting " Python scripting is not supported in this copy of GDB". How
to install python supported gdb on win10?


https://numpy.org/doc/stable/dev/development_environment.html

I am following the steps in the docs. machine is windows 10.

Debugging
<https://numpy.org/doc/stable/dev/development_environment.html#debugging>

Another frequently asked question is “How do I debug C code inside NumPy?”.
First, ensure that you have gdb installed on your system with the Python
extensions (often the default on Linux). You can see which version of
Python is running inside gdb to verify your setup:

(gdb) python>import
sys>print(sys.version_info)>endsys.version_info(major=3, minor=7,
micro=0, releaselevel='final', serial=0)




$ gdb -v
GNU gdb (GDB) 7.6.1
This GDB was configured as "mingw32".

$ gdb
(gdb) python
>import sys
>print(sys.version_info)
>end
(gdb) Python scripting is not supported in this copy of GDB.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/numpy-discussion/attachments/20201229/268f82ab/attachment.html>


More information about the NumPy-Discussion mailing list