This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients fabioz, vstinner
Date 2020-03-13.12:14:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1584101666.48.0.899582639737.issue35370@roundup.psfhosted.org>
In-reply-to
Content
> Note: currently there is a way to achieve that by pausing all the threads then selectively switching to a thread to make it current and setting the tracing function using the C-API (see: https://github.com/fabioz/PyDev.Debugger/blob/master/pydevd_attach_to_process/dll/attach.cpp#L1224), but I believe this is very hacky and not portable to other Python implementations.

I'm not sure that I understand your need. Do you need a variant of PyEval_SetTrace() which accepts a tstate argument?
History
Date User Action Args
2020-03-13 12:14:26vstinnersetrecipients: + vstinner, fabioz
2020-03-13 12:14:26vstinnersetmessageid: <1584101666.48.0.899582639737.issue35370@roundup.psfhosted.org>
2020-03-13 12:14:26vstinnerlinkissue35370 messages
2020-03-13 12:14:26vstinnercreate