Open1
個人的foreman x debug gemの起動方法

foreman start
でrailsやジョブを起動するのは便利だけど、いかんせんdebug.gemと組み合わせると、微妙な挙動になるのが気になっていたが、解消しそうなので、コマンドをメモしておく。
bin/devに以下定義して、
#!/usr/bin/env bash
foreman start -f Procfile -m all=1,web=0 <&0 &
bin/rails server "$@"
このprocfileの場合なら、ブレークポイントで止まるし、入力も受け取ってコンソールに反映されるので、よさそう
wep: bundle exec rails s
job: bundle exec sidekiq
引用元: https://github.com/rails/rails/issues/52459#issuecomment-2262596754