Skip to content

Instantly share code, notes, and snippets.

@rajvermacas
Created March 26, 2025 20:22
Show Gist options
  • Save rajvermacas/5d8681719e141f084e4afde737290819 to your computer and use it in GitHub Desktop.
Save rajvermacas/5d8681719e141f084e4afde737290819 to your computer and use it in GitHub Desktop.
debugpy remote attach python debugger
// def sample_task():
// x = 1
// import debugpy
// debugpy.listen(5678)
// debugpy.wait_for_client()
// debugpy.breakpoint()
// print("This is a sample task executed by the DAG.")
// debugpy.breakpoint()
// y = 1
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Attach",
"type": "python",
"request": "attach",
"connect": {
"host": "localhost",
"port": 5678
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment