Guides
Debug a plan
Pause a failing plan at a breakpoint, find the bad input, and fix the step.
unreleased_changes fails at its commits step.
version: 2
identifier: unreleased_changes
name: Unreleased changes
description: The commits since the latest release.
steps:
- id: release
tool_name: github__tool__gh_release
input: {}
- id: commits
tool_name: github__tool__git_log
input:
base: '{{release.url}}'
head: HEAD
finish:
output:
since: '{{release.tag}}'
commits: '{{commits.commits}}'Open the plan in the workbench
dive workbench plan \
unreleased_changesSet a breakpoint
Press Tab to focus the steps, select commits with j and k, and press b.
Start a debug run
Press g. The run calls release and pauses before commits, showing the input it's about to send:
base is the release page's URL, which git can't read as a revision. It should be the release's tag.
Fix the step
Press a to stop the run. With commits selected, press e, change base to {{release.tag}}, and press Ctrl+S to apply it.
Run it again
Press r. The run finishes, and 3 opens the run tab with each step's result.
Save
Press Ctrl+S to write the fix to ./.dive/plans/unreleased_changes.yaml.