Community
Participate
Working Groups
Build Identifier: 20090920-1017 While development to check the states of objects or to get the stack trace in case of exception we use sysouts or e.printStackTrace() or else.. we may or may not want all these commands to get in our releasing build so we comment or remove them accordingly. And we again un-comment those when we start enhancing the old src. All I expect from Eclipse is to allow me to categorize my comments and let me comment and un-comment those in bulk. It can be like a breakpoints view or as you feel more user friendly. User can put category name at the start of comment like //Category:StackTraces comments which don't have "Category:" as first element will be treated as normal comments as we have at the moment. :) I hope I am making any sense.. Waiting for the feature.. :-) Thanks & Best Regards, Ashish Sharma, India My email id : ashish.gsharma1@gmail.com Mobile : +919881236474 Reproducible: Always
That would amount to a pre-processor for Java. We're not going to implement that. Please use the pattern recommended in the Java Language Specification: if (DEBUG) { ... } If DEBUG is a compile-time constant and set to false, the compiler should eliminate all traces of that code block.