Skip to content

Instantly share code, notes, and snippets.

@ibnumardini
Created May 21, 2022 07:06
Show Gist options
  • Save ibnumardini/579c2962e5f2403da7e6bf8dd06f48e6 to your computer and use it in GitHub Desktop.
Save ibnumardini/579c2962e5f2403da7e6bf8dd06f48e6 to your computer and use it in GitHub Desktop.
vscode snippet, for better debugging in php
{
"PRP TAG": {
"prefix": "prp",
"body": [
"echo \"<pre>\". print_r([",
"\t\"$TM_FILENAME - $TM_LINE_NUMBER\",",
"\t$$1",
"], 1) .\"</pre>\";$2"
],
"description": "PRP TAG"
},
"PRP TAG DIE": {
"prefix": "prpd",
"body": [
"echo \"<pre>\". print_r([",
"\t\"$TM_FILENAME - $TM_LINE_NUMBER\",",
"\t$$1",
"], 1) .\"</pre>\"; die;$2"
],
"description": "PRP TAG DIE"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment