Search code examples
javascriptnode.jsdebugginggruntjsassemble

How to debug assemble.io (ideally in Chrome Console)


I want to be able to capture and inspect all Objects that are being parsed by Handlebars in Assemble.io. Ideally in Google Chrome Developer Tools, just like I would inspect any other JavaScript. Any ideas?


Solution

  • You can use Assemble's logging helpers to dump objects to the console at build time. This would take place on the server and not be reported to Chrome Dev Tools.

    <!-- Dump entire 'this' context -->
    {{debug}}
    
    <!-- Log string -->
    {{log "hello, logging"}}