Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Debugging Threads

Reply
Thread Tools

Debugging Threads

 
 
Robert Klemme
Guest
Posts: n/a
 
      09-24-2003
Hi all,

people have problems debugging threads. What do others think about,
setting abort_on_exception to true if ruby's command line option -d is
set? That would terminate the whole process if there is an exception in a
thread, which some regard helpful.

What do others think?

robert

 
Reply With Quote
 
 
 
 
ts
Guest
Posts: n/a
 
      09-24-2003
>>>>> "R" == Robert Klemme <> writes:

R> people have problems debugging threads. What do others think about,
R> setting abort_on_exception to true if ruby's command line option -d is
R> set? That would terminate the whole process if there is an exception in a
R> thread, which some regard helpful.

This is a good idea, and because it's a good idea it's already implemented

svg% ruby -e 'Thread.new { a + 1 }'
svg%

svg% ruby -de 'Thread.new { a + 1 }'
Exception `NameError' at -e:1 - undefined local variable or method `a' for main:Object
-e:1: undefined local variable or method `a' for main:Object (NameError)
from -e:1:in `initialize'
from -e:1:in `new'
from -e:1
svg%



Guy Decoux

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I skip debugging Ajax when debugging my code? AAaron123 ASP .Net 3 07-28-2009 04:07 PM
Debugging C vs debugging C++ jacob navia C Programming 11 10-27-2006 07:19 PM
debugging threads with eclipse Ben Java 1 07-21-2006 10:15 PM
Debugging a threads problem Chris Java 2 02-12-2006 09:46 PM
No Debugging of C# Server-Side Script, but Code-Behind Debugging Works Johann Blake ASP .Net 1 01-05-2004 03:01 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57