Skip to content

Add addFunctionBreakpointInContext - #19

Merged
MagnusIntel merged 4 commits into
intel:mainfrom
MagnusIntel:brkp-fix
Nov 6, 2026
Merged

MagnusIntel merged 4 commits into
intel:mainfrom
MagnusIntel:brkp-fix

Conversation

@MagnusIntel

Copy link
Copy Markdown
Contributor

Add the ability to select context when setting a breakpoint

@MagnusIntel
MagnusIntel requested a review from a team as a code owner November 5, 2026 14:07
@MagnusIntel
MagnusIntel requested a balanced review from Copilot November 5, 2026 14:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

4 open issues
What changed in this PR

Adds a new VS Code command to create function breakpoints scoped to a selected debug context (core) and wires up adapter support for returning context/thread metadata used by the UI.

Changes:

  • Add simics-target-debug.addFunctionBreakpointInContext command + menus and implement a Quick Pick flow to choose a context before entering a symbol.
  • Extend the debug adapter to serve getFunctionBreakpointContexts (incl. optional threadId) and update tests accordingly.
  • Add parsing/validation for explicitly scoped function breakpoints using symbol @ contextId, with new unit tests and updated documentation.
File Description
test/​symbolContexts.test.ts Extends symbol-context tests to cover getFunctionBreakpointContexts and threadId propagation.
src/​test/​breakpointManager.test.ts Adds coverage for scoped function breakpoint parsing and capability handling.
src/​tcfDebugSession.ts Adds adapter command handling for getFunctionBreakpointContexts and returns optional threadId.
src/​extension.ts Implements the new UI command that prompts for context + symbol and creates a function breakpoint.
src/​breakpointManager.ts Parses symbol @ contextId and sets ContextIds with capability validation.
package.json Registers the new command and surfaces it in the command palette, call stack context menu, and view title.
README.md Documents the new command and the symbol @ contextId scoping syntax/behavior.

Review effort: Lite

Comment thread package.json Resolved
Comment thread package.json Resolved
Comment thread src/tcfDebugSession.ts Resolved
Comment thread src/extension.ts Resolved
@MagnusIntel
MagnusIntel requested a balanced review from Copilot November 5, 2026 15:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread package.json Resolved
Comment thread src/breakpointManager.ts Resolved
Comment thread test/symbolContexts.test.ts Resolved
Signed-off-by: Magnus Andersson <magnus.andersson@intel.com>
Signed-off-by: Magnus Andersson <magnus.andersson@intel.com>
Signed-off-by: Magnus Andersson <magnus.andersson@intel.com>
Signed-off-by: Magnus Andersson <magnus.andersson@intel.com>

@aragners aragners left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good enough for now.
Have some potential improvements, selecting multiple contexts etc, but can be added later.

@MagnusIntel
MagnusIntel merged commit 4b5a544 into intel:main Nov 6, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants