Updated: 12/2/2002; 12:23:36 PM.
Java
Java development
        

Friday, November 29, 2002

No more debug statements!. I just found a really cool feature in IDEA: if I set a breakpoint in the debugger I can change so that when it's hit I can print out the value of some variable, or any expression (and also doesn't stop the VM execution!). I can also add a conditional expression for when the breakpoint will apply in the first place. I've been playing around with this a bit, and AFAICT this covers pretty much all my debugging needs that I usually do with System.out.println (or log4j). NO MORE DEBUG STATEMENTS IN CODE!! Wohooo!! And since these can be added and modified at runtime it's very flexible.

I'm sure I'm the last one to find this and ya'll are thinking "oh, I know that". But to me this was a really nice thing to find :-) [Random thoughts]


2:58:34 PM    comment []

© Copyright 2002 Patrick Chanezon.
 
November 2002
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Oct   Dec


Click here to visit the Radio UserLand website.

Subscribe to "Java" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.