Cannot start the debugger in Rubymine. Rails server launcher wasn't found in project

左心房为你撑大大i 提交于 2019-12-11 04:08:00

问题


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

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

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

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

  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.

  2. Create a new folder let's say Server.

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

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

  5. Try to debug the application using the IDE.

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

Thanks.


回答1:


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




回答2:


I had this problem because i chose the wrong folder, you must choose the root folder in the rails project. For example i had this structure

-MyProject
---RoR
-----app
-----bin
-----condig
-----etc

Then I chose the folder call

MyProject

It was wrong.

The correct is choose the folder

RoR



来源:https://stackoverflow.com/questions/27883244/cannot-start-the-debugger-in-rubymine-rails-server-launcher-wasnt-found-in-pro

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