Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Debug button not picking up a Debug configuration?

I just created a new workspace, added a new project "myproject". There are no launch configurations. I hover over the Debug toolbar button and all I get is "Debug", not "Debug myproject" in the tooltip. So, how you got "Debug Fred" is a mystery. You must have had a launch configuration at some point for Fred and probably launched it.

Disregarding that...

By default, what the debugger launches is based on the selection. It's all a bit hairy to explain (not to imply that I fully could), but take note of what is selected/active in the workbench when you hit the debug button. Also keep in mind that the contextual launching will attempt to use a launch shortcut based on the active selection if there is no existing, suitable launch configuration. A launch shortcut is basically a mechanism for creating a launch configuration on the fly and without, typically, user input. Are you working with a custom launch type? Do you have the necessary launch shortcut registered so that contextual launching works? Consider these just pointers to concepts you may want to explore. Launching in Eclipse is anything but straightforward to explain or understand, mostly, IMO, because of the large matrix of environments and use cases it has to support.

John


At 05:50 PM 5/4/2010, Steve Goodrich wrote:
I've got a workspace with two projects, "Fred" and "Ginger" (both are C++
projects).  I have two Debug Launch Configurations: "Ginger Default" and
"Ginger Rogers".  Note that there are no Launch Configurations for Fred.

On the toolbar (coolbar?) immediately below the Eclipse menu bar (File,
Edit, Source, Refactor, etc.) is a button with a green bug on it, and a
little drop-down arrow/triangle on the right of the button.  When I first
launch Eclipse, hovering over this Debug button shows a tooltip: "Debug
Fred".  Clicking on this button at this time produces an error box (Caption:
"Application Launcher", Content: "Launch failed.  Binary not found.").

If instead I click on the drop-down arrow, I see the usual menu:
        1. Ginger Default
        2. Ginger Rogers
        ---------------------
        Debug As
        Debug Configurations.
        Organize Favorites

I select the first item and the expected Debug Configuration starts.

Now, though, hovering over the Debug button brings up a tooltip reading
"Debug Ginger Default", and clicking on that button will launch the Ginger
Default debug configuration.

My question: Why does Eclipse pick a non-existent Debug Launch Configuration
when it first starts?  Also, why doesn't it at least select a valid/extant
Debug Launch Configuration (even better: the last one selected)?

Thanks,
        -- Steve G.


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev




Back to the top