简体   繁体   中英

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

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.

关闭项目,删除.idea文件夹,然后重新打开它。

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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