[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Debugging

Paatsch, Bernd

2/10/2006 11:23:00 PM

Hello,

Is it possible in ruby to generate during runtime in case of an error a log
file containing the name of the file, the line number and the line of the
code? If so how, or where to find information about it?

Thanks,
Bernd

1 Answer

James Gray

2/11/2006 4:38:00 AM

0

On Feb 10, 2006, at 5:22 PM, Paatsch, Bernd wrote:

> Hello,
>
> Is it possible in ruby to generate during runtime in case of an
> error a log
> file containing the name of the file, the line number and the line
> of the
> code? If so how, or where to find information about it?

Well, you could wrap your whole code in:

begin
# your code goes here...
rescue Exception => error
# write out to a file here, using method of error for info...
end

James Edward Gray II