I’m developing C extensions from python and I obtain some segfaults (inevitable during the development…).
I’m searching for a way to display at which line of code the segfault happens (an idea is like tracing every single line of code), how can I do that?
Here’s a way to output the filename and line number of every line of Python your code runs:
Output:
(You’d probably want to write the trace output to a file, of course.)