3 ms·
> I have an expansion set up in my text editor that spits out `Rails.logger.debug("[jbootz] ")` and then I just do `tail -f log/development.log | grep jbootz`.
by square_usual 6y ago
> I have an expansion set up in my text editor that spits out `Rails.logger.debug("[jbootz] ")` and then I just do `tail -f log/development.log | grep jbootz`. I also have iTerm set up to highlight any lines containing "jbootz", so it stands out when it's mingled in with other output. (I just picked "jbootz" as it's a unique string)
... that seems unnecessarily complicated compared to using byebug, or hell, the RubyMine debugger.
- JohnBooty 6y agoI should have been clearer. I use pry/byebug extensively as well. There are times when I prefer debugging via debug output statements and times when I prefer interactive debugging.