On Wed, May 26, 2010 at 2:04 PM, Christopher Schultz <ch...@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Chuck, > > On 5/24/2010 3:55 PM, Caldarale, Charles R wrote: >>> From: banto [mailto:banto...@gmail.com] >>> Subject: Re: set-cookie >>> >>> i´m using something like >>> System.out.println(Thread.currentThread().getStackTrace()); >> >> What you got was a display of the array object - not very interesting. >> Either iterate through the array, displaying each entry, or just do this: >> >> Thread.currentThread().dumpStack(); > > Or the more traditional: > > new Throwable("Stack Dump").printStackTrace();
dumpStack is actually static, so: Thread.dumpStack(); which is implemented as: new Exception("Stack trace").printStackTrace(); > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkv9YrcACgkQ9CaO5/Lv0PDXegCfeKZOUdIKnIgAnfSmrhO015D2 > lVEAnRzbT4mKvoli8WDYshlA1uNGHHQS > =jp7W > -----END PGP SIGNATURE----- -- Kris Schneider --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org