Hosting Skills A.s.b.l. Hosting Skills a.s.b.l.

If you don't see the test messages in Firefox 56 or earlier then install the FirePHP extension for Firebug and enable the Net panel.
If you don't see the test messages in Firefox 57 or later then install the FirePHP extension for Web Developer and enable it for your site.

The following code is used to generate the demo:

 FB::group('HSFirePHP!::LOG', array('Color' => '#0000FF'));
FB::log('Plain Message');
FB::info('Info Message');
FB::warn('Warn Message');
FB::error('Error Message');
FB::log('Message','Optional Label');
FB::groupEnd();

You will see 5 messages (log, info, warn, error, log with optional label):

The following code is used to generate the demo:

FB::group('HSFirePHP!::ERROR', array('Color' => '#0000FF'));
trigger_error('', E_ERROR);
$E_NOTICE++;
trigger_error('E_USER_ERROR', E_USER_ERROR);
trigger_error('E_USER_WARNING', E_USER_WARNING);
trigger_error('E_USER_NOTICE', E_USER_NOTICE);
if (version_compare(phpversion(), '7.0.0.all', '<')) {
HSFirePHP::E_STRICT();
}
(string) new HSFirePHP();
if (version_compare(phpversion(), '7.0.0.all', '<')) {
split(':', '');
} elseif (version_compare(phpversion(), '7.1.0.all', '<')) {
HSFirePHP::E_STRICT();
} else {
mb_ereg_replace('', '', '', 'e');
}
trigger_error('E_USER_DEPRECATED', E_USER_DEPRECATED);
FB::groupEnd();

where the class HSFirePHP is defined as:

class HSFirePHP {
public function E_STRICT() {
}
}

You will see 8 errors (E_WARNING, E_NOTICE, E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE, E_RECOVERABLE_ERROR, E_DEPRECATED, E_USER_DEPRECATED):

Execution will stop after the exception handler is called. You can test this here. Joomla! 4.x will try to catch exceptions and display an own error page.
Warning: In Joomla! 3.x you will no longer be able to render the page this tag is used in.

The following code is used to generate the demo:

FB::group('HSFirePHP!::EXCEPTION', array('Color' => '#0000FF'));
if (4 == JVersion::MAJOR_VERSION) {
FB::exceptionHandler(new Exception('Uncaught Exception'));
}
throw new Exception('Uncaught Exception');
FB::groupEnd();

You will see 1 uncaught exception:

The following code is used to generate the demo:

FB::group('HSFirePHP!::ASSERTION', array('Color' => '#0000FF'));
if (version_compare(phpversion(), '7.2.0.all', '<')) {
assert('2 < 1');
} else {
assert(true == false);
}
FB::groupEnd();

You will see 1 assertion (2 < 1) with result FALSE:

­