netbeans 6.9.1 + rails 3 + ruby 1.9.2p0 debugging

后端 未结 2 1713
梦谈多话
梦谈多话 2020-12-30 12:40

I\'m running OpenSuSE 11.3 and am having problems debugging rails3 application in NetBeans 6.9.1 (ruby 1.9.2p0, rails 3.0.3, rvm).

  1. I have installed ruby-debug1
相关标签:
2条回答
  • 2020-12-30 12:59

    Look at this thread at the netbeans's forums. It worked for me:

    http://forums.netbeans.org/post-93244.html

    The post:

    The problem is the missing path . in $:, so the scripts aren't found.
    I inserted
    $: << "."
    before the load command in rdebug-ide (/usr/bin/rdebug-ide).
    It fixed the problem.
    (NetBeans 6.9.1, ruby 1.9.2p0 (2010-08-18) [x86_64-linux])
    _________________
    tiesel
    

    its the answer

    0 讨论(0)
  • 2020-12-30 13:12

    I have found the solution! This post gave me some hints.

    my platform: ruby 1.9.2-p136, rails 3.0.3, netbeans 7.0 beta

    file: ruby-1.9.2-p136/gems/ruby-debug-ide19-0.4.12/bin/rdebug-ide:79

    script = ARGV.shift
    Debugger::PROG_SCRIPT = (script =~ /script([\\\/])rails/ ? Dir.pwd + $1 : '') + script
    puts Debugger::PROG_SCRIPT
    #Debugger::PROG_SCRIPT = ARGV.shift
    
    0 讨论(0)
提交回复
热议问题