使用phpstorm8.0.3+Xdebug断点调试PHP

aries 发表于 2015-05-29 1418 次浏览 标签 : phpstormxdebug

运行环境:

phpstorm版本:phpstorm8.0.3

apache版本:apache2.4

php版本:php5.4

xdebug版本:php_xdebug-2.3.2-5.4-vc9.dll

php.ini中的xdebug配置

[Xdebug]
zend_extension="E:/servers/php5_4/ext/php_xdebug-2.3.2-5.4-vc9.dll"
xdebug.idekey="PHPSTORM"
xdebug.remote_host=127.0.0.1
xdebug.remote_enable=on
xdebug.remote_port = 9000
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.trace_output_dir="E:/xdebug"
xdebug.profiler_enable=On
xdebug.profiler_output_dir="E:/xdebug"

PHPSTORM中的配置

(1)检查xdebug的配置

File->setting

注意Debug port一定要和php.ini中的一致

(2)设置debug

(3)添加本的web server

到这里就配置好了。

打开你的程序,设置一个断点,然后shift+f9

0条评论

如需评论,请填写表单。
换一个

记住我的信息