[SOLVED] [newbie] any DEBUG?
If I remember well :), in C# it was possible to have portions of code that were used only during debugging such as:
Code:
IF #DEBUG
assert Expression1 : Expression2;
ENDIF #DEBUG
Is anything similar possible with Java 1.6? I would be able to switch off/on debug code when deploying the LIVE version to production, without having to comment out a lot of code.
Environment notes
Eclipse 3.4.2
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)
Windows box (Windows Server 2008 64 bit)...regrettably :)
To debug or not to debug....
Please take a look at the following link:
http://www.java-forums.org/new-java/...a-program.html
It has plenty of examples of different types of ways to debug, including the one you want to use.
Luck,
CJSL