Skip to content

feat(tools): add debugging tools#31

Merged
CalvinAllen merged 1 commit intoCodingWithCalvin:mainfrom
shaiku:feat/debugger/state-and-execution-control
Mar 12, 2026
Merged

feat(tools): add debugging tools#31
CalvinAllen merged 1 commit intoCodingWithCalvin:mainfrom
shaiku:feat/debugger/state-and-execution-control

Conversation

@shaiku
Copy link
Contributor

@shaiku shaiku commented Feb 13, 2026

Implement 5 new MCP tools for enhanced debugger functionality:

  • debugger_add_breakpoint: Set breakpoint at file:line (works in any mode)
  • debugger_remove_breakpoint: Remove breakpoint by file:line (destructive)
  • debugger_list_breakpoints: List all breakpoints with metadata
  • debugger_get_locals: Inspect local variables in Break mode
  • debugger_get_callstack: Inspect call stack frames with file/line info

Also improve document_read pagination:

  • Add offset (1-based line start) and limit (max lines) parameters
  • Reduce default limit from 2000 to 500 to prevent token overflow
  • Return numbered lines with continuation hints for large files
  • Enables safe reading of files > 100K characters

Description

Adds functions to be able to control the VS debugger.

Type of Change

  • [x ] feat - New feature
  • fix - Bug fix
  • docs - Documentation only
  • refactor - Code change that neither fixes a bug nor adds a feature
  • test - Adding or updating tests
  • chore - Maintenance tasks
  • ci - CI/CD changes

Related Issues

Closes #1

Checklist

  • My code follows the project's code style
  • I have tested my changes locally

Implement 5 new MCP tools for enhanced debugger functionality:
- debugger_add_breakpoint: Set breakpoint at file:line (works in any mode)
- debugger_remove_breakpoint: Remove breakpoint by file:line (destructive)
- debugger_list_breakpoints: List all breakpoints with metadata
- debugger_get_locals: Inspect local variables in Break mode
- debugger_get_callstack: Inspect call stack frames with file/line info

Also improve document_read pagination:
- Add offset (1-based line start) and limit (max lines) parameters
- Reduce default limit from 2000 to 500 to prevent token overflow
- Return numbered lines with continuation hints for large files
- Enables safe reading of files > 100K characters
@CalvinAllen
Copy link
Contributor

@shaiku I am so sorry, I never got any notification from GitHub that these PRs were opened. I'm looking at them now, sorry for the delay!

@CalvinAllen CalvinAllen changed the title Implement issue #1, add debug tools feat(tools): add debugging tools Mar 12, 2026
@CalvinAllen CalvinAllen merged commit 6e84867 into CodingWithCalvin:main Mar 12, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

feat(tools): Add debug tools

2 participants