Question

Just finally found a solution for this so thought I'd post it here as a question and answer so I find it next time I google it:

I have a .launch file which I can run by context menu (Run As...), but it is not being added to the list of Debug or Run configurations like it should. Why not?

Was it helpful?

Solution

There is something wrong with the launch config. Possibly a project is being referenced which is closed (that's what it was for me)...

So the launch may work (in my case this was because the project wasn't actually required) but any issues like this will cause it not to be added to the list of launches. To figure out what the cause is, you can

  1. Try running the launch file
  2. In the "Debug" view (not perspective, but view i.e. tab), right click the launch and select "Edit <launch name>...". This properties window will show you any errors. Once those are fixed, it will add the launch to the list of run configs.

OTHER TIPS

You can also uncheck the options "Filter configurations in closed project" and "Filter configurations in deleted or missing projects". This should do the trick.

enter image description hereTry to remove filter from filtering preferences

This may be any help at all but I assumed that when importing a project it would be added to general list of "Run Configurations", but as I added a java run config it is added to "Java Application" parent node in Eclipse "Run Configurations".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top