Debug Foreman with RubyMine Dec 14, 2019 Open Debug Configurations and select Gem Command Create a new configuration like the image below Done !