Debug using Rubymine

本小妞迷上赌 提交于 2020-01-06 08:31:42

问题


I work on RoR application. I would like to debug my app using Rubymine debugger. But I have to run my app on specific port on server. So my question Is. Should I change default port in Rubymine configuration on which webrick run? If so how? Or run app by rubymine? I don't know that are "correct" questions (correct I mean not stupid;)) But I'm fresh in Ruby technologies. Thanks for all answers.

Edit: dax thank you for your answer I have changed port. Now serwer run but I have in rubymine console information that:

Fast Debugger (ruby-debug-ide 0.4.22, ruby-debug-base19x 0.11.30.pre15) listens on 127.0.0.1:43588

I should change fast debugger port to make it work. Am I right? But I don't have idea how to change it.

Edit:

After a while I get something like this:

30381: Exception in DebugThread loop: wrong number of arguments (0 for 1)
Backtrace:
/home/arkency/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/gems/1.9.1/gems/debugger-1.6.2/lib/ruby-debug/interface.rb:175:in `read_command'
from: /home/arkency/.gem/ruby/1.9.1/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/ide_processor.rb:84:in `process_commands'
from: /home/arkency/.gem/ruby/1.9.1/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide.rb:122:in `block in start_control'
[2014-04-13 15:18:08] ERROR SystemExit: exit
/home/arkency/.gem/ruby/1.9.1/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide.rb:126:in `exit'

Edit: I removed debugger gem and now all works fine. Thanks for all replies;)


回答1:


From my comment: RubyMine doesn't work with debugger gem, so you have to remove it from Gemfile.




回答2:


You can access/change your server port settings in the edit configurations menu.

see this question for more details



来源:https://stackoverflow.com/questions/23013834/debug-using-rubymine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!