Monday, August 27, 2018

wordpress - Log from inside php functions using ChromeLogger and ChromePHP

I'm making a foray into php (wordpress) and have set up ChromeLogger (http://craig.is/writing/chrome-logger) and ChromePHP (https://github.com/ccampbell/chromephp).



I can now log ok from my templates, but i'd really like to be able to log to the console from inside php functions too (like in js), which is very useful for debugging. In this case my function is in



mywordpressfolder/wp-content/themes/mytheme/functions.php



Like i say i'm new to php and am not sure how it all fits together with the browser and whether this is possible. Is it? If so, how?



thanks, max

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...