Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.

Debugging Zuul

Nolan Lawson edited this page Jan 17, 2016 · 1 revision

TLDR: run zuul --local 9000 --no-coverage test/mytest.js and open up http://localhost:9000/__zuul in your browser of choice.

By default, Zuul can be difficult to debug because your source code is transformed to enable easy code coverage tests. I.e. your code looks like this:

var __cov_HsIG3o$2IIarpa6am0m3eg = (Function('return this'))();
if (!__cov_HsIG3o$2IIarpa6am0m3eg.__coverage__) { __cov_HsIG3o$2IIarpa6am0m3eg.__coverage__ = {}; }
__cov_HsIG3o$2IIarpa6am0m3eg = __cov_HsIG3o$2IIarpa6am0m3eg.__coverage__;

Luckily there is an easy to way to fix this. Simply run Zuul with the --no-coverage option, and your code will be kept as normal, readable JavaScript.

Clone this wiki locally