Getting stack traces from exception objects in Eclipse debug mode
Tuesday, July 03, 2007 at 05:34 PM
Eclipse allows custom formatters for variables displayed in the Debug view. This great feature can be used to print stack traces from exception objects:
java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream(); this.printStackTrace(new java.io.PrintStream(out));
return new String(out.toByteArray());
Entry filed under: Eclipse
|
