Skip to content

Instantly share code, notes, and snippets.

@LeoMcA
Created June 22, 2022 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeoMcA/3356584a51eb130a15cb3b424707ff22 to your computer and use it in GitHub Desktop.
Save LeoMcA/3356584a51eb130a15cb3b424707ff22 to your computer and use it in GitHub Desktop.
debug any python app in vscode
#!/bin/bash
python -m debugpy --listen 5678 --wait-for-client "$@"
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to .vscode/debug-python",
"type": "python",
"request": "attach",
"connect": {
"host": "127.0.0.1",
"port": 5678
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment