From: Konrad Meyer Date: 2007-09-19T12:05:02+09:00 Subject: Re: How to print FULL stacktrace of exception w/ line #? --nextPart6517373.X3G5RxmhWM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Quoth Andrew Chen: > The ruby interpreter prints out a full trace of the exception. >=20 > However, all the expection I got is an one line message. I need to know > where the exception happened in my code. I don't mind it is verbose. >=20 > begin > .... > Math.sqrt (-1) > rescue =3D> e > puts e.inspect > end >=20 > e only prints out a message. >=20 > Am I missing anything real simple? >=20 > Thanks > ~Andrew Chen Don't rescue it, full stack trace! :P =2D-=20 Konrad Meyer http://konrad.sobertillnoon.com/ --nextPart6517373.X3G5RxmhWM Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBG8JHUCHB0oCiR2cwRApPcAJ4gnmPf6H9PWmf8ezFZbqGLrGEj9gCgnWl7 HqOiM6r6rZ153Ds4SU5CFag= =NHce -----END PGP SIGNATURE----- --nextPart6517373.X3G5RxmhWM--