nayaread
HomeFavouritesTopicsSources
HomeFavouritesTopicsSources
NayaRead links to original engineering blogs. All copyright belongs to the respective authors.
Shopify Engineering·Mar 8, 2016·7 min read50

Adventures in Production Rails Debugging - Shopify

5 minute read At Shopify we frequently need to debug production Rails problems. Adding extra debugging code takes time to write and deploy, so we’ve learned how to use tools like gdb and rbtrace to quickly track down these issues. In this post, we’ll explain how to use gdb to retrieve a Ruby call stack, inspect environment variables, and debug a really odd warning message in production. We recently ran into an issue where we were seeing a large number of similar warning messages spamming our log files: /artifacts/ruby/2.1.0/gems/rack-1.6.4/lib/rack/utils.rb:92: warning: regexp match /.../n against to UTF-8 string This means we are trying to match an ASCII regular expression on a UTF-8 source string.

Read original on shopify.engineering

Score breakdown

  • Technical depth73
  • Practical value45
  • Originality85
  • Writing quality100
  • Source reputation0
  • Recency0
  • External engagement0
  • On-site engagement0

NayaRead shows a summary and links to the original article. The full article is hosted on shopify.engineering.

More like this

Shopify Engineering

There's More to Ruby Debugging Than puts() - Shopify

Feb 24, 2015·8 min read
Shopify Engineering

Fixing the Dependency Confusion Vulnerability in 600+ Ruby Apps - Shopify

Jan 27, 2022·12 min read
Shopify Engineering

Making Open Source Safer for Everyone with Shopify’s Bug Bounty Program - Shopify

Jun 15, 2022·7 min read
Shopify Engineering

The State of Ruby Static Typing at Shopify - Shopify

Dec 7, 2020·9 min read