Wednesday, January 27, 2010

printf("Voy por aqui"); para java

For when log4j just won't do*:

System.err.println( new Exception().getStackTrace()[0] );


* Which is pretty much all the time when you're trying to debug an application in S*****s.

No comments: