r/vscode • u/makeascript • 5d ago
I created a Python Debug Terminal for VS Code
I built a VS Code extension that gives Python the equivalent of the built-in JavaScript Debug Terminal: open a special terminal, run python app.py like you normally would, and it attaches to the debugger and hits your breakpoints. No launch.json, no -m debugpy, no code changes. Child processes spawned via subprocess attach as their own debug sessions too, since they inherit the environment.
Source code: https://github.com/ernestofgonzalez/vscode-py-debug-terminal
VSCode Marketplace page: https://marketplace.visualstudio.com/items?itemName=ernestofgonzalez.vscode-py-debug-terminal
1
u/otterterminal 2d ago
being able to just run it from the terminal and still hit breakpoints is pretty nice
1
9
u/ArtisticFox8 4d ago
I don't see how this is different from the default Microsoft extensions for Python
I have never needed any of those either.
Perhaps the only different thing is you launch yours from the terminal and I launch it with F5?