1. 程式人生 > >phpstrom+phpstudy+postman

phpstrom+phpstudy+postman

性能分析 sta rac arch pst collect order 調試 type

1.打開phpstudy xdebug 擴展

技術分享技術分享

2.修改php.ini

[XDebug]
xdebug.profiler_output_dir="D:\phpStudy\tmp\xdebug"
xdebug.trace_output_dir="D:\phpStudy\tmp\xdebug"
zend_extension="D:\phpStudy\php\php-5.5.38\ext\php_xdebug.dll"
;是否允許Xdebug跟蹤函數調用,跟蹤信息以文件形式存儲,默認值為0
xdebug.auto_trace=1
;是否允許Xdebug跟蹤函數參數,默認值為0
xdebug.collect_params=1
;是否允許Xdebug跟蹤函數返回值,默認值為0
xdebug.collect_return=1
;打開xdebug的性能分析器,以文件形式存儲,這項配置是不能以ini_set()函數配置的,默認值為0
xdebug.profiler_enable = 1
;性能分析文件的命名規則,默認值為cachegrind.out.%p
xdebug.profiler_output_name = "cachegrind.out.%t.%p"
xdebug.remote_enable = 1
;用於zend studio遠程調試的應用層通信協議
xdebug.remote_handler = "dbgp"
xdebug.idekey = phpStorm
xdebug.remote_host = "localhost"
xdebug.remote_port = 9000

2.打開phpstorm 按照以下截圖設置

技術分享

技術分享

技術分享

技術分享

技術分享

技術分享

然後點擊postman的send 按鈕就會跳到phpstorm 打斷點的地方

技術分享

{
"key":"o",
"searchFields":["enName","name"],
"orderType":"enName",
"start":1,
"num": 10
}

phpstrom+phpstudy+postman