Skip to content

Instantly share code, notes, and snippets.

@priscillamc
Last active March 13, 2017 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save priscillamc/f32dc89e33413c338cbabd4a43f94aee to your computer and use it in GitHub Desktop.
Save priscillamc/f32dc89e33413c338cbabd4a43f94aee to your computer and use it in GitHub Desktop.

Debugging

FirePHP

Download and add FirePHPCore directory in a lib directory - https://github.com/firephp/firephp-core/tree/master/lib/FirePHPCore

Install and activate FirePHP extension in Firefox or FirePHP4Chrome for Chrome.

Add lib directory to include path and include the fb.php file. In require, use the relative path to the file.

 set_include_path(dirname(dirname(__FILE__)).'/lib' . PATH_SEPARATOR . get_include_path());
 require 'FirePHPCore/fb.php';

Use functions to view in console:

FB::log( $variable, 'variable' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment