How to best debug your VCL?
Poul-Henning Kamp
phk at phk.freebsd.dk
Fri Nov 10 14:53:36 CET 2006
In message <319e029f0611100339t21ee094wc8a32759040cac40 at mail.gmail.com>, "Lenna
rt Regebro" writes:
>Hi!
>
>I'm currently trying out different rule settings in VCL to make sure
>just the right things are cached, and if the rulesets gets a bit
>complex I'd like to know how to best debug it, that is how to best
>know which if statements was true or not.
There is a parameter that enables VCL logging. In your shmlog
you will get a log entry for each executed "token" of the VCL
code with line+char.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-misc
mailing list