From: "Iñaki Baz Castillo" Date: 2008-07-21T09:02:52+09:00 Subject: Re: How to log the line in which the error/exception occurred? [SOLVED] El Lunes, 21 de Julio de 2008, Iñaki Baz Castillo escribió: > Hi, I log errors/exception into a Thread in this way: > > Thread.new { >                                 begin >                                         Logic::process(data) >                                 rescue => e >                                         puts "#{e.class}: #{$!}" >                                 end >                         } > > but it doesn't show in which file and line the problem occurs, how to show > it? > > Thanks a lot. The solution is: puts $!.backtrace :) -- Iñaki Baz Castillo