1.首先下载WebMatrix安装程序,下载地址 http://www.microsoft.com/web/webmatrix/ 

   安装步骤 参考:http://www.jb51.net/softjc/138109.html

2.下载xdebug,用来调试php程序,下载地址 http://xdebug.org/download.php

选择适合自己的版本,在列表中可以看到很多名称中包含“TS”的,表示“Thread Safety”的意思,必须和PHP的版本对应,Windows下安装的默认不是TS的。

下载下来的文件为 “php_xdebug-2.2.6-5.3-vc9-nts.dll” ,需要拷贝到PHP的安装目录下的ext目录,这里我采用默认安装路径,所以PHP的安装目录是 “C:\Program Files (x86)\IIS Express\PHP\v5.3\ext\”

 接下来修改php配置(安装所在的根目录下php.ini):

 使用文本编辑器打开php.ini文件,在尾部添加以下配置 

[Xdebug]
zend_extension="C:/Program Files (x86)/IIS Express/PHP/v5.3/ext/php_xdebug-2.2.6-5.3-vc9-nts.dll"
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.auto_trace=1
xdebug.collect_params=1
xdebug.collect_return=1
xdebug.trace_output_dir="C:/Users/vendy/Documents/My Web Sites/PHPSite/xdebug/trace"
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:/Users/vendy/Documents/My Web Sites/PHPSite/xdebug/profiler"

3.phpstorm 配置

 PhpStorm  WebMatrix xDebug 配置开发环境PhpStorm  WebMatrix xDebug 配置开发环境

 PhpStorm  WebMatrix xDebug 配置开发环境

 PhpStorm  WebMatrix xDebug 配置开发环境

 PhpStorm  WebMatrix xDebug 配置开发环境

接下来php 启动debug 就可以调试进断点了。O(∩_∩)O哈哈~

 

相关文章:

  • 2021-08-21
  • 2021-08-07
  • 2021-12-07
  • 2021-08-07
  • 2021-06-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-10
  • 2021-11-21
  • 2021-04-02
  • 2022-12-23
  • 2021-04-29
  • 2021-05-14
相关资源
相似解决方案