tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Schneider <kschnei...@gmail.com>
Subject Re: set-cookie
Date Wed, 26 May 2010 18:12:52 GMT
On Wed, May 26, 2010 at 2:04 PM, Christopher Schultz
<chris@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.78@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message