Set shakapacker.yml
hmr to true.
hmr: true
Because using webpack 5, the loading sequence do matter.
Install Ruby LSP
by Shopify and VSCode rdbg Ruby Debugger
by KoichiSasada.
Make sure debug only having one version install as default gems, otherwise uninstall first:
gem uninstall -i /opt/homebrew/Cellar/ruby/3.2.2/lib/ruby/gems/3.2.0 debug
gem install debug --default