Configure sublime3 php debugging in mac environment
Under the menu bar tools >> Build System >> New Build System
The contents of the pop-up file are as follows:
<code>{ "<span>cmd</span>": <span>[<span>"/usr/local/php7/bin/php"</span>, <span>"$file"</span>]</span>, "<span>file_regex</span>": <span><span>"^(...*?):([0-9]*):?([0-9]*)"</span></span>, "<span>selector</span>": <span><span>"source.php"</span></span>} </code>
Save the name as php.sublime-build,
The saved directory can be clicked on the menu bar Sublime Text >> Preferences >> Browse Packages, and then in the User directory You can find the php7.sublime-build file you just created.
/usr/local/php7/bin/php needs to be changed to your php execution path. If you enter php in the terminal, you can execute the command, or you can use php directly.
Then just write a php file and test it, OK. From now on, you can use COMMAND + B to debug directly on sublime. There is no need to call the terminal and then cd the file directory, and then php so-and-so.
Post a picture:
The above introduces sublime3 to add php7 debugging, including sublime content. I hope it will be helpful to friends who are interested in PHP tutorials.