how can i check the value of a variable or the result of a function, the following code returns Null
for example, in php, I can do this using xdebug, but what about e