Skip to content

Instantly share code, notes, and snippets.

@masterdesky
Last active February 2, 2026 14:07
Show Gist options
  • Select an option

  • Save masterdesky/ffc463135876f1556db747610de9aff2 to your computer and use it in GitHub Desktop.

Select an option

Save masterdesky/ffc463135876f1556db747610de9aff2 to your computer and use it in GitHub Desktop.
Minimal VSCode debug configuration
python -m debugpy --wait-for-client --listen 0.0.0.0:5678 -m <module.file> <arguments>
{
"configurations": [
{
"name": "Python Debugger: Remote Attach",
"type": "debugpy",
"request": "attach",
"connect": {
"host": "localhost",
"port": 5678
},
"pathMappings": [
{
"localRoot": "${workspaceFolder}",
"remoteRoot": "."
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment