简体   繁体   中英

Why is my Eclipse launch configuration not being added to the Run or Debug configurations list?

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?

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 ie 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.

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

在此处输入图片说明 Try to remove filter from filtering preferences

这可能有任何帮助,但我认为在导入项目时,它会被添加到“运行配置”的常规列表中,但是当我添加一个 java 运行配置时,它会被添加到 Eclipse“运行”中的“Java 应用程序”父节点配置”。

For me, this happens due to copy the same project and giving the other name so my project name is not showing in the launch configuration (for not showing in the launch configuration there could be some other reasons.)

Fix:

  • Right-click on the project select Coverage as after this will get two option java application and configuration.

  • select java application it will run the project and create the coverage.

  • Other option is just run the Application it will create the coverage.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM