sdk-python
sdk-python copied to clipboard
Passthrough `_pydevd_bundle` to sandbox when debug mode is enabled
What was changed
- Add debugpy bundle import passthrough when debug mode is enabled.
Why?
debugpy is used by the Microsoft authored VSCode python debugger. Automating the passthrough eliminates one of the hurdles when connecting a debugger to workflows.
Checklist
- Closes #213
- Closes #238
How was this tested:
A simple test was validated to confirm debug settings are set correctly by enabling the debug_mode flag and by setting the TEMPORAL_DEBUG env var.
I also manually built and installed the wheel into a fresh project to confirm that debugging in VSCode works by setting the debug_mode flags.
Any docs updates needed?
Debugging docs updates are in the works