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.
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 totorchrunis the same function that is called fromif __name__ == "__main__":. It would be extremely intuitive and useful iflaunch.jsonhad first class support for debugging console scripts.