3

我在 IntelliJ 中得到了太多的调试信息,不知道如何摆脱它???这是针对 ruby​​+rails 应用程序的。

Fast Debugger (ruby-debug-ide 0.4.17.beta14, ruby-debug-base 0.11.30.pre10) listens on 127.0.0.1:12685
Connected from 127.0.0.1
11247: Starting control thread
11247: Processing in control: b /Users/kamilski81/Sites/sc/config/initializers/mongoid.rb:9
11247: <breakpointAdded no="1" location="/Users/kamilski81/Sites/sc/config/initializers/mongoid.rb:9"/>
11247: Processing in control: b /Users/kamilski81/Sites/sc/config/initializers/mongoid.rb:2
11247: <breakpointAdded no="2" location="/Users/kamilski81/Sites/sc/config/initializers/mongoid.rb:2"/>
11247: Processing in control: b /Users/kamilski81/.rvm/gems/ruby-1.9.3-p194@sc/gems/rails_admin-0.0.5/lib/rails_admin/config/model.rb:27
11247: <breakpointAdded no="3" location="/Users/kamilski81/.rvm/gems/ruby-1.9.3-p194@sc/gems/rails_admin-0.0.5/lib/rails_admin/config/model.rb:27"/>
11247: Processing in control: b /Users/kamilski81/.rvm/gems/ruby-1.9.3-p194@sc/gems/rails_admin-0.0.5/lib/rails_admin/config.rb:240
11247: <breakpointAdded no="4" location="/Users/kamilski81/.rvm/gems/ruby-1.9.3-p194@sc/gems/rails_admin-0.0.5/lib/rails_admin/config.rb:240"/>
11247: Processing in control: b /Users/kamilski81/Sites/sc/app/controllers/application_controller.rb:52
4

1 回答 1

2

IntelliJ IDEA 和 RubyMine 默认情况下不这样做,很可能会print_debug出现带有方法的输出,因为Debugger.cli_debug=true它存在于代码中的某处,或者您将RUBYMINE_DEBUG_VERBOSE环境变量设置为true,或者启用了此选项:

详细调试器输出

(IntelliJ IDEA 有同样的设置)

于 2012-08-22T00:54:38.663 回答