Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Re: automatic detection of .launch files

I'm glad to see there's been some mutual education here, so I don't feel like a leech! The .launch files go to <workspace>/.metadata/.plugins/org.eclipse.debug.core/.launches/ if you specify "Save as" "Local file" on the Common tab of the Debug Configurations dialog. If you choose "Shared file" you can choose a project-relative location.

I didn't know about the launch filters.. Indeed, my launch file is shown when I turn off "Filter Deleted/Unavailable Projects". When I select it, the error msg at the top of the dialog says "[Main]: Project does not exist". This is a bit perplexing, because I have every indication that the enclosing project does in fact exist. I'll play around with the settings and see if there's something that brings it back to life.

On a related topic, when I select another debug configuration (one that I could run but not debug), the error msg at the top of the dialog says "[Main]: Program is not a recognized executable." Would I get this error if I had built the executable without debug information?

T

On Fri, Jul 30, 2010 at 12:16 PM, Marc Khouzam <marc.khouzam@xxxxxxxxxxxx> wrote:
Did you check the launch filter?
In your launch config window, there are 5 icons to create, copy, delete, compress and filter.
Check the filter one and see if it makes your configurations show up.
 
I didn't know you could create your own launches in your project.
All my launches are stored under
<workspace>/.metadata/.plugins/org.eclipse.debug.core/.launches/


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Tim Black
Sent: Friday, July 30, 2010 3:02 PM
To: CDT General developers list.
Subject: [cdt-dev] Re: automatic detection of .launch files

An interesting data point is that when I open the Debug Configurations.. dialog, the .launch is not shown in Debug Configurations... dialog under C/C++ Application. However, if I create a new one and type in a name identical to the basename of the existing .launch file, I get the "A configuration with this name already exists" error. So it at least recognizes my .launch file. Could there be some problem with the .launch file? Like I said, I haven't manually modified it...

I can create a new Debug Configuration with a different name and duplicate settings, and this one seems to be recognized and work. I'd still like to figure out why this happens from time to time, and if there's a better solution than recreating it...

Thanks,
T

On Fri, Jul 30, 2010 at 11:05 AM, Tim Black <timblaktu@xxxxxxxxx> wrote:
I use shared .launch files and typically have many of them within a single eclipse project, located alongside the executable they correspond to. I keep these in an SVN repo along with the rest of the project files. The idea is that user can just check out an SVN metaproject, build, and immediately "Debug as..." without having to tweak anything. Most of the time, eclipse seems to correctly detect the .launch files and populate the Debug Configurations... dialog accordingly. Sometimes, however, it gets in a state where it doesn't recognize a .launch file. I don't move the .launch files around or manually edit them. Can anyone shed any light on what might cause this behavior? Any insight on how/when Eclipse CDT detects these files would be useful.
Thanks,
Tim


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



Back to the top