chromephp icon indicating copy to clipboard operation
chromephp copied to clipboard

Log gets cleared automatically before page renders.

Open hrishabhg opened this issue 11 years ago • 2 comments

My Chrome Version = 26.0 When I reloads the page, I am able to view the log but it gets cleared as soon as page renders. When I am doing this: echo ""; It is being shown there. I have called ChromePhp::log after that, it is not getting logged at the same time.

hrishabhg avatar Apr 15 '13 07:04 hrishabhg

Sounds like this is because you are trying to set a header after output has started.

See http://stackoverflow.com/questions/9959597/setting-up-chromephp-for-wordpress-using-xampp

ccampbell avatar Apr 15 '13 12:04 ccampbell

@ccampbell doesn't the logger PHP class catches if headers are already send or not? And isn't there something with the browser extension (e.g. extracting specifically created tags within the HTTP response body instead of parsing headers only) that works for both cases?

@hrishabhg If it's what @ccampbell suggested it is, you can enable PHP output buffering to prevent PHP from sending the headers and beginning of body a little longer. That might already help quickly with a simple configuration setting: http://php.net/manual/en/intro.outcontrol.php

Related issue: #15

hakre avatar Sep 14 '14 12:09 hakre