Home  >  Article  >  Backend Development  >  Sublime Text 2 配置PHP调试环境(在windows环境下)

Sublime Text 2 配置PHP调试环境(在windows环境下)

WBOY
WBOYOriginal
2016-06-23 13:33:30891browse

1:PHP安装,配置环境变量

PHP安装略过…

2:下载Sublime Text 2

下载地址:http://www.sublimetext.com/2 ,选择自己合适的版本

3:点击 sublime_text的“工具”->”编译系统”->”编译新系统”

输入编译脚本
输入如下:
{
"cmd": ["E:/wamp/bin/php/php5.3.10/php.exe", "$file"],
        "file_regex": "php$", 
        "selector": "source.php" 
}
另存到Sublime Tex的Packages\User目录下,如下是我的目录(Win8):
C:\Users\tlw\AppData\Roaming\Sublime Text 2\Packages\User
文件名叫:PHP.sublime-build

4:测试

新建一个PHP文件,然后写一个测试程序,然后按 Ctrl + B 即可看到输出结果。


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn