php.ini配置 zend_extension="D:\phpStudy\php55n\ext\php_xdebug-2.4.1-5.5-vc11-nts.dll" xdebug.remote_enable = On xdebug.remote_host = "localhost" xdebug.remote_port = 9010 xdebug.remote_handler = "dbgp" xdebug.auto_trace = 1 xdebug.collect_includes = 1 xdebug.collect_params = 1 xdebug.collect_return = 1 xdebug.default_enable = 1 xdebug.collect_assignments = 1 xdebug.collect_vars = 1 xdebug.remote_autostart = 1 xdebug.remote_connect_back = 1 xdebug.show_local_vars = 1 xdebug.show_exception_trace = 0 xdebug.idekey="PHPSTORM"

选择xdebug文件 1.<?php phpinfo();?>查看php信息 Zend Extension Build 我的信息是 API220121212,NTS,VC11 php是 5.5 32位 所以选择了 PHP 5.5 VC11 (32 bit)

配置phpstorm 1.配置php脚本文件 languages&frameworks -> php 2.配置debug 修改端口号为php.ini中的xdebug.remote_port languages&frameworks -> php - debug 3.配置代理 languages&frameworks -> php -> debug -> dbgp proxy IDE key : PHPSTORM Host: localhost Port: 80 4.配置 servers languages&frameworks -> php -> servers

更多配置信息 http://blog.csdn.net/dc_726/article/details/9905517