无法在Rubymine中启动调试器.在项目中找不到Rails服务器启动器 [英] Cannot start the debugger in Rubymine. Rails server launcher wasn't found in project

查看:99
本文介绍了无法在Rubymine中启动调试器.在项目中找不到Rails服务器启动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用rubymine IDE版本7.0.2调试Rails应用程序(4.03),但是当我像这样配置我的应用程序时

I was trying to debug a rails application(4.03) using rubymine IDE version 7.0.2, but when I configure my application like this

IDE抱怨在项目中找不到Rails Server启动器.

The IDE complained that Rails Server launcher wasn't found in the project.

请告诉我如何解决此问题,并请推荐其他调试Rails应用程序的方法.

Please tell me what can I do fix the issue, and could you please recommend other ways of debugging a rails application.

请注意,按照以下步骤使用Ruby Mine可以轻松复制此错误.

Please note that this bug is easily replicated using Ruby Mine by following these steps.

  1. 使用Ruby Mine创建一个新的rails项目,例如DebuggingRails.这将生成默认的文件夹和文件.此时,可以正常调试该应用程序.

  1. Create a new rails projects with Ruby Mine, for example DebuggingRails. Which will generate default folders and files. At this point one can debug the application normally.

创建一个新文件夹,例如Server.

Create a new folder let's say Server.

将上面所有生成的文件复制到Server文件夹,这样项目结构将为DebuggingRails \ Server.

Copy all the generated files above to the Server folder, so the project structure will be DebuggingRails\Server.

创建一个调试配置,该配置指向DebuggingRails \ Server.

Create a debugging configuration , which points to the DebuggingRails\Server.

尝试使用IDE调试应用程序.

Try to debug the application using the IDE.

出现消息在项目中未找到"Rails服务器启动器""

The message "Rails server launcher wasn't found in project" appears

谢谢.

推荐答案

关闭项目,删除 .idea 文件夹,然后再次打开备份.

Close your project, remove the .idea folder, and open it back up again.

这篇关于无法在Rubymine中启动调试器.在项目中找不到Rails服务器启动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆