Repository navigation
Conversation
r-mennig
force-pushed
the
debug-find-expand-collapsed-threads
branch
from
December 2, 2026 12:49
9475f40 to
c450aba
Compare
Find (Ctrl+F) in the Debug view only searched elements expanded in the view, so stack frames of collapsed suspended threads were not found and had to be expanded by hand first. The Debug view's Find now also searches collapsed elements down to a fixed depth, which covers the stack frames. The view's own expansion is left alone; only when an element is picked are its ancestors expanded, and the element is selected and revealed. The search runs on the hidden virtual viewer, which now auto-expands to the given level. The depth is limited because debug models can be infinitely deep, e.g. JDT's monitor chain of deadlocked threads. Fixes eclipse-platform#3097 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
r-mennig
force-pushed
the
debug-find-expand-collapsed-threads
branch
from
December 2, 2026 12:50
c450aba to
a14511d
Compare
r-mennig
marked this pull request as ready for review
December 2, 2026 12:50
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the changes enabling Find to search collapsed Debug threads.
No open issues 🎉
What changed in this PR
Addresses #3097 by letting Debug view Find search collapsed threads for stack frames without changing the visible tree’s expansion state during searching.
Changes:
- Searches the hidden Debug tree to a bounded depth of 10.
- Expands ancestors and scrolls to the selected result.
- Updates completion tracking and progress reporting for automatic expansion.
| File | Description |
|---|---|
| debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java | Enables bounded searching of collapsed Debug elements. |
| debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/VirtualFindAction.java | Adds configurable search depth, updates progress handling, and reveals selected results. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3097
What it does
The Debug view's Find (Ctrl+F) now also searches collapsed elements, down to a depth that covers stack frames. What's expanded in the Debug view stays as it is while searching. When you pick an element in the Find dialog, its ancestors are expanded and the element is selected and scrolled into view. Find in the Variables and Breakpoints views behaves as before, except that the picked element is now scrolled into view as well.
Technical concept
VirtualFindActionalready searches a hiddenVirtualTreeModelViewer. It now takes an auto-expand level for that viewer; the Debug view passes 10. The depth is limited because debug models can be infinitely deep, for example JDT's Show Monitors with deadlocked threads (thread → monitor → owning thread → …).How to test
🤖 Generated with Claude Code