Guide agents to debug before adding temporary logs - #129
Merged
Oz Zafar (ozzafar) merged 1 commit intoAug 19, 2026
Merged
Conversation
Improve debug-live discovery and instruct runtime investigations to load its breakpoint and root-cause workflow before adding temporary source-code logs.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>\nCopilot-Session: 32ca52f0-95b2-4ab4-8de8-cc870a9df789
Oz Zafar (ozzafar)
force-pushed
the
ozzafar/issue-5-trigger-debug-skill
branch
from
August 18, 2026 18:56
32369c2 to
1f22d03
Compare
Matthias Hertel (MatthiasHertelArm)
pushed a commit
to MatthiasHertelArm/CMSIS-Developer-Assistant
that referenced
this pull request
Aug 20, 2026
Port of microsoft/DebugMCP#129, in embedded flavour. The skill description gains the trigger vocabulary (runtime bugs, faults, crashes, hangs, failing tests, wrong/null values, unexpected output) and a debugger-first rule: do not start a runtime investigation by adding printf over UART/ITM, LED toggles or trace macros - on a Cortex-M that is a rebuild, reflash and reset per hypothesis and it moves the timing you are observing. Halt and inspect instead; add_logpoint only knowing it still stops the core per hit. The MCP server now sends instructions at initialize pointing at the cmsis-debug-live skill (and at get_debug_instructions for harnesses that do not load skills), start_debugging says the same in one sentence, and the get_debug_instructions guide carries the same rule so the two stay consistent.
Sourabh Mehta (soumeh01)
pushed a commit
to Open-CMSIS-Pack/CMSIS-Developer-Assistant
that referenced
this pull request
Aug 21, 2026
Port of microsoft/DebugMCP#129, in embedded flavour. The skill description gains the trigger vocabulary (runtime bugs, faults, crashes, hangs, failing tests, wrong/null values, unexpected output) and a debugger-first rule: do not start a runtime investigation by adding printf over UART/ITM, LED toggles or trace macros - on a Cortex-M that is a rebuild, reflash and reset per hypothesis and it moves the timing you are observing. Halt and inspect instead; add_logpoint only knowing it still stops the core per hit. The MCP server now sends instructions at initialize pointing at the cmsis-debug-live skill (and at get_debug_instructions for harnesses that do not load skills), start_debugging says the same in one sentence, and the get_debug_instructions guide carries the same rule so the two stay consistent.
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.
Summary
Validation
pm run compile
n- pm run lintn-pm test (136 passing)