Cannot start the debugger in Rubymine. Rails serve

2019-07-21 20:18发布

问题:

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