Skip to content

VS Code ignores breakpoints in the importlib module #1676

@Andrej730

Description

@Andrej730

How to reproduce:

  1. Disable justmycode for debugpy (in my case it's disabled both in user and workspace settings).
    image

  2. Create an empty python file.

  3. Open Python\Lib\importlib\__init__.py and insert a breakpoint. You can add some print statement to get sense when we're past the breakpoint.

image

  1. Start debug for an empty python file with the "Python Debugger: Debug Python file".
    image

  2. Script will be executed but breakpoint is never triggered - though there will be print messages we added on step 3.

As a workaround it's possible to debug it with the classic breakpoint() though it's not as convenient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reproIssue has not been reproduced yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions