Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save stephensabatini/3ab840fcb76a0c6ca3f672a038751188 to your computer and use it in GitHub Desktop.
Save stephensabatini/3ab840fcb76a0c6ca3f672a038751188 to your computer and use it in GitHub Desktop.
Error logging and viewing in PHP for MAMP

PHP Example:

<?php error_log( print_r( $thing, true ) ); ?>

CLI Example:

tail -f /Applications/MAMP/logs/php_error.log

Clear CLI window to see better while debugging:

command+K
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment