From: elise huard Date: 2010-09-22T17:00:03+09:00 Subject: Re: stop and display traceback when thread throws an exception in my experience the ruby-debug debugger (1.8.7) goes all haywire when you're working with threads. On Wed, Sep 22, 2010 at 9:48 AM, Quintus wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Am 22.09.2010 04:24, schrieb Ralph Shnelvar: >> Is there a way to stop all threads and display traceback when any thread (especially a thread that is not the main thread) throws an exception? > > You can either run ruby with the -d (or --debug) switch or call this > somewhere in your code: > > Thread.abort_on_exception = true > > Vale, > Quintus > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkyZtOQACgkQDYShvwAbcNmA6wCgiwr/HXLnEKqYB33KRW7qlz7U > oPIAn3aUa9O+EQi/7XyiATJHO/F2RdvK > =aPOP > -----END PGP SIGNATURE----- > >