使Eclipse不在错误上运行项目 [英] Make Eclipse NOT run project on errors

查看:43
本文介绍了使Eclipse不在错误上运行项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使Eclipse(Helios SR2)不在出错时运行项目,而不是提示答案或仍然运行?

Is it possible to make Eclipse (Helios SR2) NOT run your project on errors, instead of prompting for an answer or run anyway ?

场景:

在月食中,我按下了运行"按钮.存在编译错误.Eclipse询问我是否仍要继续运行.我可以选择是"和否".我也可以勾选始终不询问就运行".

In eclipse, I hit the Run button. There are compilation errors. Eclipse asks me if I would still like to continue with the run. I have the options of "Yes" and "No". I can also tick "Always run without asking".

在Eclipse首选项中,在运行/调试">启动"下有用于如果项目包含错误继续启动"的单选按钮,但是它们仅提供2个选项:始终"或提示".该页面上的其他部分提供了从不"选项,但没有此选项.

In Eclipse Preferences, under Run/Debug > Launching there are radio buttons for "Continue launch if project contains errors", but they only give 2 options, "Always" or "Prompt". Other sections on that page give the options "Never", but not this one.

现在.我只想在没有错误的情况下从不运行,而无需任何提示(控制台消息将是完美的,但不是必需的).有可能吗?

Now. I'd just like to never run if there are errors, without any prompt (a console message would be just perfect, but not required). Is that possible ?

推荐答案

否.这是不可能的.

但是您为什么要那样?恕我直言,提示是最好的月食(或其他任何S/W).如果单击运行,则单击运行,然后希望文件运行.

But why would you want that? IMHO the prompt was the best eclipse (or any other s/w for that matter) can do. If you hit run, then you hit run, and you want the file to run.

您是否有特定的原因想要单击运行按钮,并希望项目运行?您极有可能认为您没有按下运行"按钮,而是再次热议它想知道发生了什么,而不是期望项目有错误.

Is there any specific reason why you would want to hit the run button and the want the project not to run? It is very highly possible that you think you did not hit the run button and hot it again wondering what happened, rather than expecting that the project has errors.

这篇关于使Eclipse不在错误上运行项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆