I sometime use gdb to debug python scripts (CPython of course). It is useful typically to debug core dumps (and when it involves c extension modules).
A basic question is how to set breakpoint on a python function in gdb. Say I've a python script with function foo and I want to break right after foo is called. I guess setting a conditional breakpoint on PyEval_EvalFrameEx
might work, but not sure how to do it.