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

3

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.

Hadrian answered 11/1, 2015 at 1:59 Comment(2)
try to use the byebug gem github.com/deivid-rodriguez/byebug Required: MRI 2.0.0 or higher. For debugging ruby 1.9.3 or older, use debugger.Etiolate
Thanks, that is probably the option I would go if there is no other options.Hadrian
S
13

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

Scuff answered 11/3, 2015 at 4:25 Comment(1)
Actually, I had to use byebug to debug on consoleHadrian
U
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

Ultramicrochemistry answered 28/3, 2016 at 19:26 Comment(0)
C
1

bundle binstubs railties

or

rake rails:update:bin

This will generate the bin/rails file which RubyMine is looking for in your project.

Checkered answered 12/9, 2023 at 2:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.