[issue35370] Provide API to set the tracing function to be used for running threads.

Fabio Zadrozny report at bugs.python.org
Fri Mar 13 08:19:44 EDT 2020


Fabio Zadrozny <fabioz at users.sourceforge.net> added the comment:

I'd like to, but it only sets the tracing to the currently running thread (the request is for setting the tracing for other threads).

Just for info, the problem I'm solving is that the debugger is multi-threaded, but the user can start the code without any tracing in place, and then, when it gets to an attach to process or a programmatic attach to the debugger, the debugger needs to set the tracing to threads that are already running (and any new thread created afterward) and Python doesn't really have any structure for that in place (so, I'm using the C-API as a workaround to do what PyEval_SetTrace does but targeting any thread).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35370>
_______________________________________


More information about the Python-bugs-list mailing list