netbeans 6.9.1 + rails 3 + ruby 1.9.2p0 debugging

后端 未结 2 1728
梦谈多话
梦谈多话 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 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
    

提交回复
热议问题