LiquidDebug

Overview

LiquidDebug provides a stack trace of executed Liquid code when an error occurs, supplementing the [typically vague] default error format provided by Liquid.

It is not suitable for a production environment as it makes no effort to account for performance or memory leak issues and so should only be used in a development environment when debugging specific issues.

Installation

Add the following to your Gemfile:

gem 'liquid_debug', '~> 0.1.1'

Usage

Include the LiquidDebug extension (e.g. in an initializer or in config/application.rb):

# config/initializers/liquid_debug.rb
require 'liquid/debug' if Rails.env.development?

You should now see something like this in your server output when a Liquid error occurs:

example