Enabling Assertion Checking For Debugging
Assertion checking is available only in J2SE v. 1.4.
By default, assertions are disabled.
To enable assertion checking for debugging:
- From the main window, choose Tools
Options.
- In the Options window, expand Debugging and Executing
Debugger Types.
- Select the Default Debugging node.
- On the Properties tab, find the External Process property, click its
value, and click the ellipsis (...) button.
- In the property editor, find the Arguments field and
insert -ea in front of the
list of command-line switches.
 |
You can enable assertions with various
granularities. See http://java.sun.com/j2se/1.4/docs/guide/lang/assert.html for more information.
|
Legal Notices