Rails with ruby-debugger throw 'Symbol not found: _ruby_current_thread (LoadError)'

前端 未结 7 2076
旧巷少年郎
旧巷少年郎 2020-12-04 12:14

I have standard ruby-head and Rails 3.1rc4. I installed ruby-debug with following instructions from http://dirk.net/2010/04/17/ruby-debug-with-ruby-19x-and-rails-3-on-rvm/<

7条回答
  •  猫巷女王i
    2020-12-04 12:34

    It looks like this is a known bug in ruby-debug-base, for the moment. I have added my comment to the issue on the bug tracker. Plase consider adding your notes as well:

    http://rubyforge.org/tracker/index.php?func=detail&aid=29222&group_id=8883&atid=34290

    In the meantime, ruby 1.9 has a built-in debugger; its just very slow. Manually add this require line to your code:

    require 'debug'
    

    Also, the debugger breaks on all StandardError exceptions by default, so do this when it first starts up:

    catch off
    

提交回复
热议问题