sfw_debug

Description

Trigger an error at runtime.

Use sfw_log() for logging general information in debug mode instead.

Since: 1.0.0

For further information see: trigger_error

Code

<?php function sfw_debug( $message, $function = '', $type = E_USER_NOTICE ){ 
	 … 
 } ?>

Parameter

$message
(string|callable) A message string or function that returns a message string. Wrapping extensive functions (like var_export) in an anonymous function is about 10x faster when debugging is off
$function
(string) calling FUNCTION or METHOD

Default: ''

$type
(mixed) see trigger_error

Default: E_USER_NOTICE

Return

Seems like the return value of this function is not yet documented.

File

core/debug.php