Skip to content

Instantly share code, notes, and snippets.

@nhobi
Last active October 4, 2017 17:46
Show Gist options
  • Save nhobi/4d8ee334f38db027acc3360b2c3e988f to your computer and use it in GitHub Desktop.
Save nhobi/4d8ee334f38db027acc3360b2c3e988f to your computer and use it in GitHub Desktop.
A quick, one-line PHP debugging snippet for Sublime Text. Think Laravel's dd() helper function for non-Laravel things.
<snippet>
<content><![CDATA[
echo '<pre>'; var_dump(\$${1:variable_name_here}); echo '</pre>'; exit();
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>dd</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment