title: How to print to console from a php file in wordpress
body: <p>I have a php file which is part of a wordpress plugin. I need to debug an issue we are having. I want to find out what a variable's value is. How can I print the variable's value to console? echo or chrome or firefox extensions have been suggested. I couldn't get echo to output to console (<code>echo “$variablename";</code>) and neither using the firephp extension for firefox.</p>