PhpStorm 2017 设置断点调试
1. 下载xdebug模块
2.
3. 把这段 放在 php.ini里面
xdebug.profiler_output_dir="G:\phpStudy\tmp\xdebug"
xdebug.trace_output_dir="G:\phpStudy\tmp\xdebug"
zend_extension = G:\phpStudy\php\php-7.0.12-nts\ext\php_xdebug-2.6.0-7.0-vc14-nts.dll
zend_extension=php_xdebug.dll
xdebug.remote_enable = on
xdebug.remote_handler = dbgp
xdebug.remote_host = test.58tp.cn
xdebug.remote_port = 9001
xdebug.idekey = PHPSTORM
xdebug.var_display_max_children=256
xdebug.var_display_max_data=512
xdebug.var_display_max_depth=5
做记号的这些 是需要注意的 host和port要和编辑器里面的配置一样
4. 配置phpstorm
5.
这样的就是成功
安装google插件
这个插件 貌似 不用也行
这是重点
完成
调试ajax也可以
点击这个蜘蛛 在浏览器地址栏中 复制 ?XDEBUG.... 这个东西 拼接到ajax的url地址后面就行了