sdk-python icon indicating copy to clipboard operation
sdk-python copied to clipboard

Passthrough `_pydevd_bundle` to sandbox when debug mode is enabled

Open VegetarianOrc opened this issue 11 months ago • 0 comments

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

  1. Closes #213
  2. 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

VegetarianOrc avatar Dec 11 '25 20:12 VegetarianOrc