You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dev Kabir edited this page Oct 26, 2024
·
2 revisions
How to use this plugin?
Functions to call.
/*** Logs a message to a specified directory.** @param mixed $message The message to be logged.* @param bool $trace Whether to log the backtrace.* @param string $dir The directory where the log file will be written.** @return void* @throws \Exception*/functionwrite_log( $message, bool$trace = false, string$dir = WP_CONTENT_DIR ) {}
/*** Debug from called spot.** @return void* @throws Exception*/functioninit_debugger() {}
/*** Outputs a formatted dump of a variable for debugging purposes.** @param mixed $variable The variable to dump.* @return void*/functiondump( $variable ){}
/*** Dump a variable and stop execution.** @return void*/functiondd( $data ) {}
Filter hooks
/*** Filter to push data into the debug bar contents.** @param array $contents Collection of debug data.*/add_filter( 'wp_debugger_contents', function( array$contents ) {
return$contents;
});