-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improvement - need of profiling nested vars #7
Comments
I just released a first implementation of forp_inspect. |
wanted to know if we can get the inspect do run for all the inputs of functions, this would be great so i dont need to support forp and xdebug. |
this function is now available with Sample code : forp_start();
forp_inspect('$_SERVER', $_SERVER);
forp_inspect('$_GET', $_GET);
forp_inspect('$_POST', $_POST);
forp_inspect('$_COOKIES', $_COOKIES);
register_shutdown_function(function() {
echo '<script src="http://aterrien.github.io/forp-ui/javascripts/forp.min.js?v2"></script>';
echo '<script>var $f = new forp.Controller(); $f.setStack(';
echo json_encode(forp_dump());
echo ').run();</script>';
}); Work in progress to enable |
I close this inactive thread - see #8 |
Hi,
I need to make some debug and inspect vars, so the simplest way is to do a vardump but it's noisy and disturbs the html, and it's not really simple to read (coz of tree of referenced objects).
Maybe you could add a sort of forp_inspect function that creates a debug structure directly in the current forp_node.
This structure could be serialized like this :
With the forp GUI the exploration of trees of properties and nested arrays will be much greater than showing all informations expanded like in a var_dump or print_r.
It could also be usefull for debugging functions parameters like you do with the
@ProfileCaption
annotation but with more details -@ProfileInspect("$var", 1)
will add to the inspector the entry $var with the content of the first parameter.The text was updated successfully, but these errors were encountered: