Skip to content

Debugger detection fails for sys.monitoring based debuggers #182

Closed
@rchiodo

Description

@rchiodo

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions