We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b2ffe6e + 6bf2ba6 commit 87f7c44Copy full SHA for 87f7c44
Python/ceval.c
@@ -62,6 +62,13 @@ _PyEval_NoToolsForUnwind(PyThreadState *tstate)
62
* unwinding. In that situation we can skip some of the normal unwinding
63
* machinery.
64
*/
65
+ if (tstate->tracing) {
66
+ return false;
67
+ }
68
+ if (tstate->c_profilefunc || tstate->c_tracefunc) {
69
70
71
+ return tstate->interp->monitors.tools[PY_MONITORING_EVENT_PY_UNWIND] == 0;
72
return !tstate->cframe->use_tracing;
73
}
74
0 commit comments