3

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 enter image description here

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.

Toan Nguyen
  • 11,263
  • 5
  • 43
  • 59
  • 2
    try to use the `byebug gem` https://github.com/deivid-rodriguez/byebug Required: MRI 2.0.0 or higher. For debugging ruby 1.9.3 or older, use debugger. – MZaragoza Jan 11 '15 at 06:26
  • Thanks, that is probably the option I would go if there is no other options. – Toan Nguyen Jan 11 '15 at 06:41

2 Answers2

13

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

Cara McCormack
  • 388
  • 1
  • 7
  • 21
1

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

Yuliem Alavez
  • 63
  • 1
  • 5