本文介绍了使用 Rubymine 进行调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从事 RoR 应用程序的工作.我想使用 Rubymine 调试器调试我的应用程序.但是我必须在服务器上的特定端口上运行我的应用程序.所以我的问题是.我应该更改运行 webrick 的 Rubymine 配置中的默认端口吗?如果是这样怎么办?或者通过rubymine运行应用程序?我不知道这些是正确"的问题(正确我的意思是不愚蠢;))但我对 Ruby 技术很陌生.谢谢大家的回答.

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.

dax 谢谢你的回答我已经改变了端口.现在 serwer 运行,但我在 ruby​​mine 控制台中有以下信息:

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.

过了一会儿,我得到了这样的东西:

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'

我删除了调试器 gem,现在一切正常.感谢所有回复;)

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

推荐答案

来自我的评论:RubyMine 不适用于 debugger gem,因此您必须将其从 Gemfile 中删除.

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

这篇关于使用 Rubymine 进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-20 03:10