out.println( "Thread: \"" + thread.name() + '"' );
for ( StackFrame frame : thread.frames() )
{
Location location = frame.location();
StackTraceElement trace = new StackTraceElement( location.declaringType().name(),
location.method().name(),
sourceFileName( location ),
location.lineNumber() );
out.println( "\tat " + trace );
}
}