Skip to content

Support debugging console scripts from launch.json #1311

@ringohoffman

Description

@ringohoffman

Related:

I am trying to debug torchrun, which exists as a console script in pytorch. Today, in order to debug it I have to go searching thru the pytorch source code to find what I should run as a module, which is involved and probably not obvious to most users. I am also fortunate that the entrypoint to torchrun is the same function that is called from if __name__ == "__main__":. It would be extremely intuitive and useful if launch.json had first class support for debugging console scripts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions