Skip to content

Instantly share code, notes, and snippets.

@jbnv
Created February 3, 2017 22:15
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 jbnv/db8f4a4abbbcb812f9ebe40be4523b6a to your computer and use it in GitHub Desktop.
Save jbnv/db8f4a4abbbcb812f9ebe40be4523b6a to your computer and use it in GitHub Desktop.
Debugging shim for PHP.
//BEGIN TEMP
echo '<p>['.__FILE__.':'.__LINE__.'] GOOD</p>';
try {
// some command here
} catch (Exception $e){
NsStrings::print_r_block($e);
}
echo '<p>['.__FILE__.':'.__LINE__.'] DIE</p>';
die;
//END TEMP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment