
3/8/2016
What this post added
This post introduces and details the practical application of `gdb` for debugging production Rails applications. It outlines a step-by-step process for attaching to a running process, setting breakpoints in C source files of the Ruby interpreter, generating core dumps for later analysis, and using Python scripts within `gdb` to retrieve Ruby call stacks and inspect Ruby string objects. The specific problem solved was identifying a UTF-8 warning triggered by malformed cookie data, leading to a temporary monkey-patch solution.