简体   繁体   English

我可以使用哪个HTTP Web服务器来使用Rubymine 3.0.1调试ruby代码?

[英]Which HTTP web server can I use to debug ruby code using Rubymine 3.0.1?

I've being using Mongrel with Rails 2.3.X and Ruby 1.8.7 without problems, but when I switch to Ruby 1.9.2 and Rails 3, I'm having problems with mongrel to debug. 我一直在使用带有Rails 2.3.X和Ruby 1.8.7的Mongrel,但是没有问题,但是当我切换到Ruby 1.9.2和Rails 3时,我遇到了要调试的mongrel的问题。

Webrick is just slow, so, do you know any alternatives? Webrick太慢了,所以,您知道其他选择吗? Do you know how to fix mongrel to successfully debug rails app using rubymine 3.0.1? 您是否知道如何使用rubymine 3.0.1修复杂种以成功调试Rails应用程序?

RubyMine 3.1 is out now and supports a number of different servers. RubyMine 3.1现在已经发布,并且支持许多不同的服务器。 Under the "Run" menu, select "Edit Configurations" then go to "Defaults->Rails". 在“运行”菜单下,选择“编辑配置”,然后转到“默认值->导轨”。 There you can choose between: 您可以在其中选择:

  • WEBrick 使用WEBrick
  • lighttpd lighttpd的
  • mongrel 杂种
  • thin
  • trinidad 特立尼达
  • unicorn 独角兽
  • glassfish GlassFish的

I couldn't get Defaults->Rails changes to affect my different configs that were set to 'Default', but I did have success changing the discrete config ('development') directly. 我无法获得Defaults-> Rails的更改来影响设置为“ Default”的不同配置,但是我确实成功地直接更改了离散配置(“ development”)。 Note: For Mongrel you need to have this in your gemfile: gem 'mongrel', '1.2.0.pre2' 注意:对于Mongrel,您需要在gemfile中包含此文件:gem'mongrel gem 'mongrel', '1.2.0.pre2'

I'm using RM 3.1.1, Rails 3.0.9 and Ruby 1.9.2. 我正在使用RM 3.1.1,Rails 3.0.9和Ruby 1.9.2。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM