[XDebug]
xdebug.profiler_append = 0
;效能监测的设置开关
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
;profiler_enable设置为1的时候,效能监测信息写入文件所在的目录
xdebug.profiler_output_dir="D:\PHPstudy\tmp\xdebug"
;设置的函数调用监测信息的输出路径
xdebug.trace_output_dir="D:\PHPstudy\tmp\xdebug"
;生成的效能监测文件的名字
xdebug.profiler_output_name ="cache.out.%t-%s"
; IDE与XDebug协作
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port = 9000
xdebug.idekey = PHPstorm-xdebug
;.dll文件的路径
zend_extension="D:\PHPstudy\PHPTutorial\PHP\PHP-5.4.45\ext\PHP_xdebug.dll"
3.PHPStudy配置
1)选择PHP版本
File ->Settings –>languages & Frameworks –> PHP
2)Debug端口
“Debug port”与PHP.ini中xdebug.remote_port值一致
4)设置服务器
3)配置host端口
IDE key与 PHP.ini中xdebug. idekey值一致
Port与 PHP.ini中xdebug.remote_port值一致
5)Run-> Edit Configurations–> PHP Web Application
7)点击小电话图标,打开监听(图中表示已经开启监听)
8)打断点
9)点击调试
效果图: