Skip to content

Conversation

@thatplatypus
Copy link

Hey, awesome project! I was playing around with it and wanted to try getting conditional variables to work and it ended up looking like not a super heavy lift to implement that so I figured I'd give it a shot and see if you would accept a PR for it.

  • Adds support for conditional breakpoints with expression evaluation (e.g., myInt == 4)
  • Adds support for hit count conditions (==N, >=N, >N, <N, <=N, %N)
  • Enables SupportsConditionalBreakpoints and SupportsHitConditionalBreakpoints DAP capabilities

To test it I have the unit tests in the PR, and the build locally with my project using it, and it seemed to work as expected!

Tried to match the existing styles as best I could, but let me know if you would like me to change anything, or go another route entirely. If I'm able to help out I would like to see this feature get implemented

Tom Brewer added 2 commits January 15, 2026 16:15
Adds support for conditional breakpoints and hit count evaluation with common expressions

Adds event and request handlers for exposing new functionality
@thatplatypus thatplatypus changed the title Feat/debugging conditional variable evaluation support feat/debugging conditional variable evaluation support Jan 15, 2026
@MattParkerDev
Copy link
Owner

Thanks for your contribution! I'll review when I get a chance 😊

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.

2 participants