Viewing variables and state information: inline debugging?
For 3.x
I've been struggling with this one all day. My challenge: how do I run simple echo commands or print_r() commands in a .php file so that I can output state and variable information as I test a site. (like the venerable printf()).
I have tried the global $debugger commands and nothing outputs to the debugger footer area. I have also tried the Debug_Enable profile, but still cannot output anything. Both echo and print_r() do not work either.
Specifically, I am testing code inside of userlib.php and am trying to track down execution points and variable values. I'd like to do simple print_r($myvar); calls to help me along.
Alternatively — logging information to a file would be nice, but it's harder to get execution flow from that as I test-user click from page to page.
Thanks