Debugger: wait for debugger connection rails
- how to debug in rails
- how to debug rails in vscode
- how to debug ruby on rails
- rails debugger
Rails log level environment variable.
How to Debug and Step-Through Rails Codebase
💡
I originally wrote this post two years ago, which showed the usage of the gem. Since then, I've switched to the gem for all my Ruby debugging needs, and hence re-publishing the updated post.
Reading the source code is a great way to understand how a feature works in Rails.
Rails logger error
However, stepping through the specific Rails method you're interested in is even better. You can inspect the local variables, follow the conditional path, and learn exactly what's happening behind the scenes.
This post shows how you can debug and step-through the Rails codebase for a better understanding of the framework.
Recently, while researching the authenticity tokens in Rails, I wanted to learn how Rails verifies the authenticity tokens.
After reading the API docs, at first glance, the method looks straightforward.
Upon receiving a request, Rails checks if the request is verified and calls the method if it isn't.
Reading the source code of the method reveals that a few different checks need to happen to verify a request.
Since Ruby is so reada