Is there any way to pretty print the contents of numpy arrays whist debugging a numba function using gdb?
I’m attempting to debug a numba function using gdb_init and gdb_breakpoint. My function operates over numpy arrays. As I step through my code, I would like to p(rint) arrays using the gdb console and receive meaningful output.
This is supported if your gdb installation has Python support and the NumPy package is available to that Python. This section of the docs explains how: