jekyllliquidoctopress

Debug liquid tags in Octopress / Jekyll


Any ideas how to see where liquid tags actually fail?

To be clearer, I'm having some trouble with a plugin and all I see on previewing my site is

Liquid Error: can’t convert Array into String

On my site. How do I get more debug information? Thanks


Solution

  • Try to run rake generate with --trace for more detailed information.

    rake generate --trace
    

    Commonly, it will give exactly where the error is promoted.Then simply print some variables or use debugger to debug.

    This blog may be helpful.