Skip to content

docs(dap): describe forwarded native line breakpoints and the mapping kinds - #1838

Merged
angelozerr merged 3 commits into
redhat-developer:mainfrom
muescha:docs/dap-forward-native-breakpoints
Nov 2, 2026
Merged

angelozerr merged 3 commits into
redhat-developer:mainfrom
muescha:docs/dap-forward-native-breakpoints

Conversation

@muescha

@muescha muescha commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

The change

These are the docs announced in #1752, plus the screenshots for the new Mappings tab caption from #1795.

Depends on #1795. This branch contains its two commits, so that the screenshots match the code. Once #1795 is merged, I'll rebase, and only the docs commit stays.

User guide (docs/dap/UserGuide.md)

  • New section "Forwarding native line breakpoints": while a DAP session runs, native line breakpoints in mapped files are forwarded to the DAP server. There's nothing to configure and no second breakpoint is needed. If a DAP breakpoint and a native one are on the same line, only the DAP breakpoint is sent.
  • Mappings tab: the mappings also decide which native breakpoints are forwarded. A new paragraph explains the kinds of mappings (Language, File type, File name patterns) and the Language Id column.

Python and Ruby pages

  • python-debugpy.md: the regular Python breakpoint is hit as it is, so no second DAP breakpoint is needed.
  • ruby-rdbg.md: the text next to the mappings screenshot talked about Python. It now talks about Ruby.

Screenshots

The Mappings tab now shows "Map files to this debug adapter (debugging/breakpoints)", so these are new:

  • DAP_config_type_mappings.png
  • codelldb/file_mappings.png
  • go-delve/file_mappings_tab.png
  • julia/file_mappings.png
  • python-debugpy/file_mappings.png
  • swift-lldb/file_mappings_tab.png
  • vscode-js-debug/file_mappings_tab.png
  • ruby-rdbg/file_mappings.png: new, the page linked to it but the file didn't exist.

All of them have the same size and show the mappings from the current templates.

Question: should the Language Id column be in the screenshots?

In these screenshots the Language Id column is filled in, because the IDs come from the templates. Most of the older screenshots showed it empty.

A filled-in column suggests that a value is needed. Someone who doesn't use a template then has to wonder whether to enter a language ID, and which one. As far as I can see, DAP doesn't use the value at all, and debugging works with the column empty. Whether the column should stay at all is a question for #1837.

@angelozerr Which do you prefer for this PR?

  1. Keep the IDs in the screenshots. They then match what a template fills in, and the new paragraph in the user guide says that DAP doesn't use them and the column can stay empty.
  2. Retake the screenshots with the column empty.

Decisions on the #1752 list

Not part of this PR

  • ruby-rdbg.md links to 10 more images that don't exist. That needs a separate PR.

Tests

Only docs and images change here, apart from the commits of #1795.

🤖 Generated with Claude Code

muescha and others added 3 commits November 2, 2026 18:59
IntelliJ's UI guidelines: no period at the end of a single sentence
(https://plugins.jetbrains.com/docs/intellij/punctuation.html) and
sentence case for tooltip text
(https://plugins.jetbrains.com/docs/intellij/capitalization.html).
The other breakpoint messages in DAPBundle already follow this.

DAPShadowedBreakpointTest uses the adapter message as the JavaScriptCore
debug adapter now sends it: "Pending native script resolution".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…pter

The caption of the Mappings tab of a DAP run configuration said
"Declare file associations to allow setting breakpoints.", as if the
mappings were only about breakpoints. The mappings decide which files
this debug adapter handles: for debugging and for breakpoints.

New caption, as agreed in redhat-developer#1706:
"Map files to this debug adapter (debugging/breakpoints)", with the
Chinese text from redhat-developer#1706. It also drops the final period (IntelliJ UI
guidelines, https://plugins.jetbrains.com/docs/intellij/punctuation.html).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… kinds

The user guide now explains that native line breakpoints in mapped files
are forwarded to the DAP server, and what the kinds of mappings and the
Language Id column mean. The Python page says that the regular Python
breakpoint is hit without a second DAP breakpoint.

The screenshots of the Mappings tab show its new caption. This also adds
the screenshot that the Ruby page was missing and fixes its copied Python
text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 137ae92d-f5f3-4b15-b694-f2dfea5fdb1a
Commits

Reviewing files that changed from the base of the PR and between c6cdb1c and 7e97817.

Files ignored due to path filters: 8
  • docs/dap/images/DAP_config_type_mappings.png is excluded by !**/*.png
  • docs/dap/images/codelldb/file_mappings.png is excluded by !**/*.png
  • docs/dap/images/go-delve/file_mappings_tab.png is excluded by !**/*.png
  • docs/dap/images/julia/file_mappings.png is excluded by !**/*.png
  • docs/dap/images/python-debugpy/file_mappings.png is excluded by !**/*.png
  • docs/dap/images/ruby-rdbg/file_mappings.png is excluded by !**/*.png
  • docs/dap/images/swift-lldb/file_mappings_tab.png is excluded by !**/*.png
  • docs/dap/images/vscode-js-debug/file_mappings_tab.png is excluded by !**/*.png
Files selected for processing: 6
  • docs/dap/UserGuide.md
  • docs/dap/user-defined-dap/python-debugpy.md
  • docs/dap/user-defined-dap/ruby-rdbg.md
  • src/main/resources/messages/DAPBundle.properties
  • src/main/resources/messages/DAPBundle_zh_CN.properties
  • src/test/java/com/redhat/devtools/lsp4ij/dap/breakpoints/DAPShadowedBreakpointTest.java

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

Summary

Summary by CodeRabbit

  • Documentation
    • Clarified how file mappings determine which native line breakpoints are forwarded during DAP sessions, including how matching files and breakpoints on the same line are handled.
    • Updated Python debugging guidance to explain that native Python line breakpoints are forwarded without needing a duplicate DAP breakpoint.
    • Corrected the Ruby debugging guide’s file-mapping instructions.
  • Usability
    • Updated breakpoint-mapping labels and shadowed-breakpoint message punctuation.

The update documents DAP file mappings and native line breakpoint forwarding, corrects Ruby Debug mapping instructions, revises English and Chinese message text, and updates breakpoint test expectations.

Changes: DAP breakpoint guidance

Layer / File(s) Summary
Mapping and forwarding documentation
docs/dap/UserGuide.md, docs/dap/user-defined-dap/python-debugpy.md, docs/dap/user-defined-dap/ruby-rdbg.md
The user guide explains mapping options and documents native line breakpoint forwarding during DAP sessions, including same-line precedence. The debugger guides clarify Python breakpoint instructions and Ruby Debug mappings.
Breakpoint wording and test expectations
src/main/resources/messages/DAPBundle.properties, src/main/resources/messages/DAPBundle_zh_CN.properties, src/test/java/com/redhat/devtools/lsp4ij/dap/breakpoints/DAPShadowedBreakpointTest.java
The mapping titles and shadowed-breakpoint messages are revised. Test adapter and presentation expectations use title-case pending text.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: angelozerr, lin-qingying

Merge Risk: Minimal · up to 7e978

The changes clarify DAP mapping and breakpoint behavior without an identified merge-blocking issue. Merge after normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly identifies the DAP documentation changes for forwarded native line breakpoints and mapping kinds.
Description check Passed The description directly explains the documentation, screenshot, mapping, breakpoint-forwarding, and Python/Ruby content changes.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (5 skipped: 5 unsupported.)

@codecov

codecov Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 38.28%. Comparing base (e96dee9) to head (7e97817).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1838      +/-   ##
==========================================
+ Coverage   37.65%   38.28%   +0.62%     
==========================================
  Files         786      786              
  Lines       30019    30059      +40     
  Branches     6001     6012      +11     
==========================================
+ Hits        11305    11508     +203     
+ Misses      16756    16546     -210     
- Partials     1958     2005      +47     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@angelozerr angelozerr added documentation Improvements or additions to documentation dap Debugging Adapter Protocol labels Nov 2, 2026
@angelozerr angelozerr added this to the 0.30.0 milestone Nov 2, 2026
@angelozerr angelozerr moved this to In Progress in Java Tooling Nov 2, 2026
@angelozerr
angelozerr merged commit e72beed into redhat-developer:main Nov 2, 2026
9 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Java Tooling Nov 2, 2026
@angelozerr

Copy link
Copy Markdown
Contributor

Thanks @muescha !

@muescha
muescha deleted the docs/dap-forward-native-breakpoints branch November 2, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dap Debugging Adapter Protocol documentation Improvements or additions to documentation

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants