第一步
首先安装好phpstorm和wampserver集成开发环境
第二步
安装好之后使用记事本打开php.ini,我的目录是C:\wamp\bin\php\php5.5.12,找到xdebug,修改结果如下
xdebug.remote_enable = on
xdebug.profiler_enable = on
xdebug.profiler_enable_trigger = on
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"
xdebug.show_local_vars=0
xdebug.var_display_max_data = 4056
xdebug.var_display_max_depth = 5
xdebug.remote_handler = dbgp
xdebug.remote_host = 127.0.0.1
xdebug.remote_port = 9000
xdebug.remote_autostart = 1
重启一下wamp