Opened 10 years ago
Closed 10 years ago
#10970 closed enhancement (fixed)
[Debugger] Assistence for locating source code
Reported by: | bonefish | Owned by: | anevilyak |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Applications/Debugger | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
When having to locate a source file because the path stored in the shared object's debug info doesn't match the actual location of the file on disk, Debugger only offers a file dialog to select the file in question.
While the path may be different, the file name usually is the same, so Debugger could assist by querying all volumes for that name and provide a context/pop-up menu with all candidates for quick selection. While it may not always be useful (e.g. their may be lots of "main.c[pp]" on a developer's machine) or able to find the candidate at all (e.g. volume not indexed), in most cases it should work very nicely.
Attachments (1)
Change History (5)
comment:1 by , 10 years ago
Status: | new → in-progress |
---|
by , 10 years ago
Attachment: | 10970.patch added |
---|
comment:2 by , 10 years ago
patch: | 0 → 1 |
---|
comment:3 by , 10 years ago
Attached please find a quick proof of concept for trying this out. The behavior I've implemented is as follows:
- All volumes are queried for a matching filename, and any candidates are aggregated into a sorted list.
- If the above returns 0 matches, we immediately fall back to the current file panel behavior.
- Otherwise, we build a pop up menu as in the ticket description, containing each of the aforementioned matches, as well as a separator + final item allowing one to choose to locate the file manually if none of the results found via query are correct.
Please let me know what you think.
comment:4 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | in-progress → closed |
Implemented in hrev47421.
Proof of concept