Skip to content

Instantly share code, notes, and snippets.

@robdecker
Last active November 2, 2019 04:03
Show Gist options
  • Save robdecker/5978342 to your computer and use it in GitHub Desktop.
Save robdecker/5978342 to your computer and use it in GitHub Desktop.
[Debug to a file] #d7 #d8
file_put_contents("/tmp/drupal.debug", print_r($whatever, TRUE), FILE_APPEND);
$ tail -f /tmp/drupal.debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment