Professional Web Applications Themes

Problem with 1.8 / optp.rb from within debugger - Ruby

Hi, Am I the only who get the following error when trying to go step-by-step in the debugger in the optp code? 469 [13:11] robertocaerdonn:ruby/LDAP> ruby -r debug ldap-infocentre.rb -d Debug.rb Emacs support available. ldap-infocentre.rb:26:RCS_REV = "1" (rdb:1) b 243 Set breakpoint 1 at ldap-infocentre.rb:243 (rdb:1) c /usr/local/lib/ruby/1.8/optp.rb:1621: unexpected return 472 [13:21] robertocaerdonn:ruby/LDAP> ruby -v ruby 1.8.0 (2003-09-09) [i386-freebsd5] Line 1621 in optp.rb is: -=-=- def options optp ||= OptionPr.new block_given? or return optp begin yield optp <<<<<<<< line 1621 rescue PError optp.warn $! nil end end -=-=- and the code it is trying to execute is the following. Works ...

  1. #1

    Default Problem with 1.8 / optp.rb from within debugger

    Hi,

    Am I the only who get the following error when trying to go step-by-step in
    the debugger in the optp code?

    469 [13:11] robertocaerdonn:ruby/LDAP> ruby -r debug ldap-infocentre.rb -d
    Debug.rb
    Emacs support available.

    ldap-infocentre.rb:26:RCS_REV = "1"
    (rdb:1) b 243
    Set breakpoint 1 at ldap-infocentre.rb:243
    (rdb:1) c
    /usr/local/lib/ruby/1.8/optp.rb:1621: unexpected return

    472 [13:21] robertocaerdonn:ruby/LDAP> ruby -v
    ruby 1.8.0 (2003-09-09) [i386-freebsd5]

    Line 1621 in optp.rb is:

    -=-=-
    def options
    optp ||= OptionPr.new
    block_given? or return optp
    begin
    yield optp <<<<<<<< line 1621
    rescue PError
    optp.warn $!
    nil
    end
    end
    -=-=-

    and the code it is trying to execute is the following. Works fine when run
    outside "-r debug".

    -=-=-
    argv.options do |opts|
    opts.banner = banner
    opts.on("-d", "--debug", "Debugging") {
    |$debug|
    $debug = true
    }
    opts.on("-h", "--help", "Help") {
    print opts
    exit 0
    }
    opts.on("-u", "--uid-check", "Check uid & acronym") {
    |uid_check|
    }
    opts.p!
    end
    -=-=-

    --
    Ollivier ROBERT -=- Eurocontrol EEC/AMI -=- [email]robertoeurocontrol.fr[/email]
    The Postman hits! The Postman hits! You have new mail.

    ____

    This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful.

    Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL unless it is confirmed by appropriately signed hard copy.

    Any views expressed in this message are those of the sender.

    Ollivier Robert Guest

  2. #2

    Default Re: Problem with 1.8 / optp.rb from within debugger

    Ollivier Robert [mailto:robertoeurocontrol.fr] wrote:
    > Am I the only who get the following error when trying to go
    > step-by-step in the debugger in the optp code?
    Nope... this is the same bug described in [ruby-core:01611]
    ([url]http://tinyurl.com/s1td[/url]). I believe there is a fix for it in the latest
    CVS.

    HTH,


    Nathaniel

    <:((><


    Nathaniel Talbott Guest

  3. #3

    Default Re: Problem with 1.8 / optp.rb from within debugger

    In article <019501c39974$c6bcbda0$c81e140aabraham>,
    Nathaniel Talbott <nathanielNOSPAMtalbott.ws> wrote:
    > Nope... this is the same bug described in [ruby-core:01611]
    > ([url]http://tinyurl.com/s1td[/url]). I believe there is a fix for it in the latest
    > CVS.
    I just upgraded to the latest CVS and it seems to have disappeared.

    Thanks.
    --
    Ollivier ROBERT -=- Eurocontrol EEC/ITM -=- [email]robertoeurocontrol.fr[/email]
    Usenet C Historique FreeBSD: The Power to Serve!
    Ollivier Robert Guest

Similar Threads

  1. optp behaviour
    By Christian von Mueffling in forum Ruby
    Replies: 0
    Last Post: November 4th, 03:26 PM
  2. 4gl interactive debugger execution problem
    By Christian Eriksson in forum Informix
    Replies: 3
    Last Post: October 13th, 07:02 PM
  3. projects that use optp
    By culley harrelson in forum Ruby
    Replies: 1
    Last Post: September 22nd, 03:44 AM
  4. optp versions and sources
    By Meino Christian Cramer in forum Ruby
    Replies: 1
    Last Post: September 4th, 05:36 AM
  5. T SQL Debugger Problem
    By dscobey in forum Microsoft SQL / MS SQL Server
    Replies: 0
    Last Post: July 7th, 04:12 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139