http://windows.php.net/download#php-5.6
2
在目录“C:\Program Files (x86)\IIS Express\PHP”下面新建目录 v5.6.10,
并将刚才下载的包解压到这个目录中,如下图所示:
END
修改IIS
1
打开“控制面板”->“系统和安全”->“管理工具”->
"Internet Information Services (IIS)管理器"
2
找到 php Manager
3
选择“PHP Step”->"Register new PHP version"->"C:\Program Files (x86)\IIS Express\PHP\v5.6.10\php-cgi.exe"->确定
END
修改VS选项
选择"Visual Studio 2015"->"Tools"->"Options"->"PHP Tools"->"Interpreter"->"Steup"->"PHP path",选择
"C:\Program Files (x86)\IIS Express\PHP\v5.6.10"
点击 Enable XDebug extension,在d出的界面选择 download
由于我的php的版本是32位含哪,5.6.10的,线程安全版,所以我下载的是
PHP 5.6 VC11 TS(32 bit)
将包解压到 "C:\Program Files (x86)\IIS Express\PHP\v5.6.10\ext\php_xdebug-2.3.2-5.6-vc11.dll"
打开 "C:\Program Files (x86)\IIS Express\PHP\v5.6.10\php.ini",在文件的后面添加如下代码:
[WebPIChanges]error_log = "C:\Windows\Temp\php-5.6.10_errors.log"upload_tmp_dir = "C:\Windows\Temp\"session.save_path = C:\Windows\tempcgi.force_redirect = 0cgi.fix_pathinfo = 1fastcgi.impersonate = 1fastcgi.logging = 0max_execution_time = 300date.timezone = Asia/Bruneiextension_dir = "C:\Program Files (x86)\IIS Express\PHP\v5.6.10\ext\"
[XDEBUG]
zend_extension="C:\Program Files (x86)\IIS Express\PHP\v5.6.10\ext\php_xdebug-2.3.2-5.6-vc11.dll"
xdebug.remote_enable = on
xdebug.remote_handler = dbgp
xdebug.remote_host = 127.0.0.1
xdebug.remote_port = 9000
xdebug.remote_mode = req
重新启动vs,查看vs选项
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)