在Netbeans中启用断言 [英] Enabling assertions in Netbeans
本文介绍了在Netbeans中启用断言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想做类似的事情
java -enableassertions com.geeksanonymous.TestClass
我该怎么做?
推荐答案
最简单的方法是使用运行属性。该属性标记为VM选项。
The easiest way is to use the Run properties. The property is labeled 'VM Options'.
本教程包含NetBeans 5.5中更详细的信息和屏幕截图。该对话框在最新版本的NetBeans中非常相似; 6.8,现在可以使用。
This tutorial has more detailed info and screen shots from NetBeans 5.5. The dialog is very similar in the most recent release of NetBeans; 6.8, which is available today.
这篇关于在Netbeans中启用断言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文