Debugging Threads

Discussion in 'Ruby' started by Robert Klemme, Sep 24, 2003.

  1. 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
    Robert Klemme, Sep 24, 2003
    #1
    1. Advertising

  2. Robert Klemme

    ts Guest

    >>>>> "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
    ts, Sep 24, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris

    Debugging a threads problem

    Chris, Feb 12, 2006, in forum: Java
    Replies:
    2
    Views:
    401
    Chris
    Feb 12, 2006
  2. yoda
    Replies:
    2
    Views:
    424
    =?utf-8?Q?Bj=C3=B6rn_Lindstr=C3=B6m?=
    Aug 1, 2005
  3. threads without threads

    , Aug 27, 2004, in forum: C Programming
    Replies:
    4
    Views:
    389
    William Ahern
    Aug 27, 2004
  4. Pedro Pinto

    Java Threads - Get running threads

    Pedro Pinto, Apr 8, 2008, in forum: Java
    Replies:
    2
    Views:
    1,415
    Arne Vajhøj
    Apr 9, 2008
  5. Une bévue
    Replies:
    0
    Views:
    137
    Une bévue
    Jun 14, 2006
Loading...

Share This Page