If you are writing a PEP based debugger in C, you probably want to operate on the _PyInterpreterFrame struct, rather than the PyFrameObject.
I’ve opened Issue #103609 to track the issue of PyEval_GetFrame()returning the previous frame.
If you are writing a PEP based debugger in C, you probably want to operate on the _PyInterpreterFrame struct, rather than the PyFrameObject.
I’ve opened Issue #103609 to track the issue of PyEval_GetFrame()returning the previous frame.