This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Currently PROJECT SETTINGS | BUILD | COMPILING SOURCES | Generate Debugging Info does not include enabling asserts but there is no indication of this anywhere. Either indicate this somewhere or add another checkbox for enabling asserts.
Uh, silly me. Asserts are always compiled but only enabled/disabled at runtime. What I meant to say is that we should add assert support for running options.
Type "-ea" to VM Options field in Running Project panel. *** This issue has been marked as a duplicate of 43194 ***
David, I'm reopening this issue because the point was a usability issue, not the technical ability to add "-ea". The current UI is confusing because users may assume that "Generate Debugging Info" somehow means asserts are on. It isn't really clear what is going on. Unless you have an explicit option for asserts under "Running" users might confuse the two as I have.
No plans to touch it.