Xdebug extension can be configure to show specific information about the stack traces and useful intuitive information error messages when one occurs coupled with interactive debugging. Error messages and stack traces can exactly reveal the cause of an error, while interactive debugging allows you to step through your code one instruction at a time, interrogate the type and values of program variables.
You can enable several Xdebug features to illuminate the state of your application when an error occurs: (This assumes that you have already installed and enabled xdebug on your lamp stack)
To reveal a stack trace whenever your program encounters an error, add the following in your php.ini where you enable xdebug.
xdebug.default_enable=On
xdebug.extended_info=1
to further reveal all variables in the top-most scope.
xdebug.show_local_vars=1
xdebug.var_display_max_children, xdebug.var_display_max_data, and xdebug.var_display_max_depth> are related settings to control the number of properties, the length of strings, and the nesting depth, respectively, of variables shown when xdebug.show_local_vars is in use.
You can find more information on the Xdebug Web site.


0 Responses to “Debugging With Xdebug on xampp for linux”