Closed
Description
Based on the investigation here:
microsoft/debugpy#1747
it looks like the debugger detection needs to be updated to check for sys.monitoring being enabled.
Debugpy and Pydevd use sys.monitoring for 3.12 and beyond, so the debugger detection fails.
I think the debugger detection could just use sys.monitoring.get_tool(sys.monitoring.DEBUGGER_ID)
to detect if a debugger is running. Maybe skipping the logic to see if it's a known debugger or not because that tool id is supposed to be used for just debuggers.
Metadata
Metadata
Assignees
Labels
No labels