Here are a few more tips:
- I mostly use Pry rather than RubyMine because it’s way faster to get to the debugger. You can modify the Rails app without restarting.
- You must not run the Rails command within the context of foreman. If you’re using
foreman
to start Rails and other processes, you will need to either comment out the Rails process or run foreman like this:foreman start -f Procfile.dev -m webpack-client-bundle=1,webpack-server-bundle=1
wherewebpack-client-bundle
andwebpack-server-bundle
are your processes to start. - If you run
puma
by default, you might want to switch the application server for debugging so that you don’t have multiple threads going at once. Runningrails s
might do the trick.
Be sure to also see: