On 15/05/2024 23:55, Robert McLeod wrote: | | Hi everyone, | | Is there a gist or similar guide anywhere on the steps required to build NumPy with debugging symbols on the Windows platform using the new Meson build system?
In general, I would try to avoid using python_d.exe. It requires the entire software stack to be rebuilt with that python, which can be quite painful (as you discovered). Instead, you can build only the project you wish to debug with release-with-debug-symbols (on windows, these are `*.pdb` files), which will allow you to run the exe under a debugger. Another tip for debugging: add the line `import pdb;pdb.set_trace()` to your python code, which will stop the process under test. Then you can fire up visual studio, and in the debugger menu choose attach-to-process and connect to the correct PID to start debugging compiled code. If you do this after `import numpy`, you should be able to navigate to the code you wish to debug in an editor window and set a breakpoint. Then go back to your python terminal and continue the run. Matti _______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com