Posted by vaibhavjain on October 26, 2012 at 11:47am
Hello Drupalers,
I am trying to figure out a way to debug Varnish and write some code in VCL file.
I am struggling to get all attributes and properties of an object.
Is there anything like print_r for varnish too.
I am looking at the request object and object is "req", any way to know what all information does it contain ?
Hoping to get a reply soon :)

Comments
You can filter the output of
You can filter the output of varnishlog by your IP address:
http://mattiasgeniar.be/2011/11/26/varnish-filter-by-source-ip-using-var...
Also in your .vcl file you can log additional things (that will be viewable with varnishlog):
# Log something.log "Stripped URL";
log req.url;
The syntax for 3.x is slightly different IIRC.
--
Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his
@dalin, Tried this, sadly,
@dalin,
Tried this, sadly, didnt work for me :(
I am still looking it to get it working.
Vaibhav Jain
have you tried appending text
have you tried appending text right to obj.response ? haven't tried myself, but might be worth a shot