Skip to content

Comments

Implement issue #1, add debug tools#31

Open
shaiku wants to merge 1 commit intoCodingWithCalvin:mainfrom
shaiku:feat/debugger/state-and-execution-control
Open

Implement issue #1, add debug tools#31
shaiku wants to merge 1 commit intoCodingWithCalvin:mainfrom
shaiku:feat/debugger/state-and-execution-control

Conversation

@shaiku
Copy link

@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
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

1 participant