Skip to content

Instantly share code, notes, and snippets.

@alex-cory
Created March 5, 2014 07:42
Show Gist options
  • Save alex-cory/9362828 to your computer and use it in GitHub Desktop.
Save alex-cory/9362828 to your computer and use it in GitHub Desktop.
Great for debugging php when using the terminal. You can put little checks in where ever is necessary and easily find your debugging spots to remove them.
# ------------------------------------------------------------------
echo '--- check 1 ---------------------------------------' . "\n";
# DEBUG ------------------------------------------------------------
var_dump($something);
# ------------------------------------------------------------------
echo '---------------------------------------------------' . "\n";
# ------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment