| Summary: | [launch] Default Launchers preference settings have no effect when using launch shortcut to initiate debugging | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Mario Pierro <mario.pierro> | ||||
| Component: | cdt-debug-dsf | Assignee: | Marc Khouzam <marc.khouzam> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Pawel Piech <pawel.1.piech> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | marc.khouzam, pawel.1.piech | ||||
| Version: | 6.0 | Flags: | pawel.1.piech:
review+
|
||||
| Target Milestone: | 7.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Mario Pierro
This is an interesting problem. I ran into the same thing in Bug 304384 comment #6. Fixing it for the launch shortcut is not as obvious. I'll have to think about it. Created attachment 168498 [details]
Fix
Well, it turned out to be much easier than I feared.
(The debug platform is really good)
Committed to HEAD.
Pawel, can you review this two-line fix? The solution is to not only check the preferred launch delegate of the launch configuration, but to also check if there is a preferred launch delegate for the launch configuration type. Only if both are not set should we force a default ourselves. This works nicely now, thank you. Having bug 284557 fixed should also avoid the hassle of having to go through the "Select launch delegate" dialog. (In reply to comment #4) > This works nicely now, thank you. Great! > Having bug 284557 fixed should also avoid the hassle of having to go through > the "Select launch delegate" dialog. I've just committed the fix to Bug 312997 which I believe much improves our use of the launch delegates. There is not real user-visible change, except that the preferred launch delegate global preference will always be set. Having just looked at bug 284557, this makes perfect sense. *** cdt cvs genie on behalf of mkhouzam *** Bug 284573: Do force a preferred launch delegate if the configuration type already has one (which is set in the global preference for preferred launch delegate) [*] CApplicationLaunchShortcut.java 1.6 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/CApplicationLaunchShortcut.java?root=Tools_Project&r1=1.5&r2=1.6 |