Skip to content

fix: Add logging and visual feedback for rejected DAP breakpoints#1464

Merged
angelozerr merged 1 commit intoredhat-developer:mainfrom
angelozerr:fix/dap-breakpoint-feedback-1433
Apr 8, 2026
Merged

fix: Add logging and visual feedback for rejected DAP breakpoints#1464
angelozerr merged 1 commit intoredhat-developer:mainfrom
angelozerr:fix/dap-breakpoint-feedback-1433

Conversation

@angelozerr
Copy link
Copy Markdown
Contributor

See #1433

When a breakpoint is registered during a debug session but rejected by supportsBreakpoint(), it was silently ignored with no feedback to the user or diagnostic information in logs.

This could happen when:

  • sourcePosition is null (timing/race condition)
  • debugAdapterDescriptor.isDebuggableFile() returns false unexpectedly

Changes:

  • Add detailed logging (enabled, sourcePosition, breakpoint type) when a breakpoint is rejected
  • Mark rejected breakpoints as invalid in the IDE with an explanatory message so users get immediate visual feedback
  • Improve separation of concerns in sendBreakpoints() for better clarity

This helps diagnose the non-deterministic behavior reported in #1433 where breakpoints sometimes fail to register during active debug sessions.

Fixes redhat-developer#1433

When a breakpoint is registered during a debug session but rejected
by supportsBreakpoint(), it was silently ignored with no feedback
to the user or diagnostic information in logs.

This could happen when:
- sourcePosition is null (timing/race condition)
- debugAdapterDescriptor.isDebuggableFile() returns false unexpectedly

Changes:
- Add detailed logging (enabled, sourcePosition, breakpoint type)
  when a breakpoint is rejected
- Mark rejected breakpoints as invalid in the IDE with an explanatory
  message so users get immediate visual feedback
- Improve separation of concerns in sendBreakpoints() for better clarity

This helps diagnose the non-deterministic behavior reported in redhat-developer#1433
where breakpoints sometimes fail to register during active debug sessions.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@angelozerr angelozerr added diagnostic dap Debugging Adapter Protocol labels Apr 8, 2026
@angelozerr angelozerr added this to the 0.20.0 milestone Apr 8, 2026
@angelozerr angelozerr self-assigned this Apr 8, 2026
@angelozerr angelozerr moved this to In Progress in Java Tooling Apr 8, 2026
@angelozerr angelozerr merged commit 285de4f into redhat-developer:main Apr 8, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Java Tooling Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dap Debugging Adapter Protocol diagnostic

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant