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.

Bug 183245 - Add a #elsedebug or allow debug to be used as a normal define
Summary: Add a #elsedebug or allow debug to be used as a normal define
Status: NEW
Alias: None
Product: javame
Classification: Unclassified
Component: Build System (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: Petr Suchomel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-31 10:01 UTC by flintza
Modified: 2010-03-31 10:01 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description flintza 2010-03-31 10:01:54 UTC
While the #debug and #mdebug directives are extremely useful, at times it would help to be able to specify a code block that should be used if debug is not active.
The following scenarios would both get a lot of use:

//#mdebug
doDebugStuff();
//#elsedebug
doNonDebugStuff();
//#enddebug


//#if debug
doDebugStuff();
//#else
doNonDebugStuff();
//#endif