Short Ruby Newsletter

Share this post

How to start ruby/debug when using Rails with multiple processes

newsletter.shortruby.com
Code Summaries

How to start ruby/debug when using Rails with multiple processes

#codesummary #code #summary #debug #rails #start

Lucian Ghinda
Sep 27, 2022
2
1
Share

This is a code summary for https://dev.to/ayushn21/remote-debugging-in-rails-7-49nh written by Ayush Newatia

# Code Summary for https://dev.to/ayushn21/remote-debugging-in-rails-7-49nh  # How to start Rails debugger when using multiple processes in Development  # config/application.rb require "rails/all"  if defined?(Rails::Server) && Rails.env.development?   require "debug/open_nonstop" end  # --------------  # run to start Rails and all other processes that you need bin/dev  # and then run:  bundle exec rdbg -a # This will connect to Rails if that is the only debuggable process  # Use Ctrl+D to exit the debugger and keep Rails running

The code for the generated image is here.

2
1
Share
Previous
Next
1 Comment
Rafał Jaroszewicz
Oct 2, 2022Liked by Lucian Ghinda

Useful stuff, saves you time in development 👍

Expand full comment
Reply
Top
New
Community

No posts

Ready for more?

© 2023 Lucian Ghinda
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing