Dear Warwick RSE,
I'm interested in your thoughts on how best to debug software which is written in Python, but on top of compiled code written in C or Fortran. This is something we use/write a lot in my group, but this specific question has arisen from Bug 12753 on Bugzilla.
Specifically, there is a function in the C part of the software which is called from the Python part of the code. I'd like to put breakpoints into this function, and be able to see a complete backtrace which shows me what route has been taken through the Python part of the software in order to reach that breakpoint. Maybe there's a way to use gdb for this? Alternatively I see interesting things about debugging Python in the cool-and-froody editors that the young people like (Atom, VSCode etc) but can't quite figure out if that functionality stretches to reading symbolic information in compiled codes that Python scripts invoke.