Passthrough _pydevd_bundle to sandbox when debug mode is enabled#1550
Closed
elidlocke wants to merge 2 commits into
Closed
Passthrough _pydevd_bundle to sandbox when debug mode is enabled#1550elidlocke wants to merge 2 commits into
_pydevd_bundle to sandbox when debug mode is enabled#1550elidlocke wants to merge 2 commits into
Conversation
…ugpy is used by the Microsoft authored VSCode python debugger
Adds a short subsection to the Workflow Sandbox documentation pointing users at debug_mode=True (or the TEMPORAL_DEBUG env var) for attaching IDE debuggers to sandboxed workflow code.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rebase of #1249, original work by @VegetarianOrc. The original PR was approved
on 2026-01-05 with green CI, but has been stale since February with merge
conflicts against
main. This rebases it on top of currentmainwith nobehavioral changes to the original commit; the only diff vs. the original
PR is:
temporalio/worker/_workflow.py(kept all four imports added on both sides).
tests/worker/test_worker.py(keptthe new tests added to
main, thentest_worker_debug_modeafter them).Also adds a short docs note under "Workflow Sandbox" -> "Debugging Workflows
in the Sandbox" pointing users at
debug_mode=Truefor IDE-debugger support.The original commit by @VegetarianOrc is preserved as-is with author attribution.
Opening as a draft to confirm CI passes before requesting review.