Created
March 26, 2025 20:22
-
-
Save rajvermacas/5d8681719e141f084e4afde737290819 to your computer and use it in GitHub Desktop.
debugpy remote attach python debugger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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