phpStorm连接xdebug

来自个人维基
跳转至: 导航搜索

一、配置php.ini

  • 注:
Ubuntu路径 /usr/local/lib/php.ini
zend_extension = "c:/wamp/bin/php/php5.4.3/zend_ext/php_xdebug-2.2.0-5.4-vc9.dll"

[xdebug]
xdebug.remote_enable=on
xdebug.remote_host=localhost
xdebug.remote_handler=dbgp
xdebug.remote_port=9000

二、配置PHP Web Application

Run -> Edit Configurations...

Php web application.png

三、配置Settings

File -> Settings -> PHP -> Servers:

Php servers.png

File -> Settings -> PHP -> Debug:

Php debug.png


File -> Settings -> PHP -> Debug -> DBGp_Proxy:

DbGp proxy.png