鍍金池/ 問答/PHP  網(wǎng)絡(luò)安全/ 為何我的xdebug調(diào)試跟蹤文件一下子漲1.6GB?如何配置?

為何我的xdebug調(diào)試跟蹤文件一下子漲1.6GB?如何配置?

我剛學(xué)使用xdebug這工具,發(fā)現(xiàn)他功能強(qiáng)大,但難駕馭啊。
來看我的配置:

[xdebug]
zend_extension=xdebug.so
xdebug.remote_host=192.168.6.159
xdebug.remote_enable=On
xdebug.remote_port=9001
xdebug.remote_handler="dbgp"
xdebug.remote_mode="req"
xdebug.idekey="phpstorm"
;xdebug.remote_connect_back=1
;xdebug.auto_autostart=1
xdebug.remote_log=/data1/logs/xdebugTrace/trace.log

;xdebug.auto_trace=1
xdebug.profiler_enable=on
xdebug.trace_output_dir="/data1/logs/xdebugTrace/trace_output_dir"
xdebug.profiler_output_dir="/data1/logs/xdebugTrace/trace_output_dir"
xdebug.trace_options=1
xdebug.trace_output_name=trace.%c

我的日志文件在幾分鐘內(nèi)漲到 1.6G,是不是因?yàn)槲掖蜷_了那個auto_trace配置?下面那個trace.1949388597.xt,
太嚇人了,我是開發(fā)環(huán)境并沒有多少訪問量,但這里的數(shù)據(jù)為何這么多?求指教?

    240 -rw-r--r--. 1 nobody nobody     242688 4月  20 18:12 cachegrind.out.16342
    244 -rw-r--r--. 1 nobody nobody     246114 4月  20 18:18 cachegrind.out.16343
    244 -rw-r--r--. 1 nobody nobody     246068 4月  20 18:18 cachegrind.out.16404
 178652 -rw-r--r--. 1 nobody nobody  182938526 4月  20 18:19 cachegrind.out.16405
 216124 -rw-r--r--. 1 nobody nobody  221308259 4月  20 18:23 cachegrind.out.16415
    244 -rw-r--r--. 1 nobody nobody     245892 4月  20 18:23 cachegrind.out.16416
    244 -rw-r--r--. 1 nobody nobody     245900 4月  20 18:23 cachegrind.out.16423
4202368 -rw-r--r--. 1 nobody nobody 2380530850 4月  20 18:23 trace.1949388597.xt
   4096 -rw-r--r--. 1 nobody nobody    2621997 4月  20 18:23 trace.2986568079.xt

問題二,我裝了webgrindGUI工具。顯示的為什么是這樣的,沒有顯示函數(shù)名:
圖片描述

回答
編輯回答
奧特蛋

只要是性能分析和自動跟蹤 可以關(guān)閉,注釋掉即可

;啟用性能檢測分析  
;xdebug.profiler_enable=on

;啟用代碼自動跟蹤  
;xdebug.auto_trace=on 
2018年5月8日 11:09
編輯回答
忠妾

我找到原因了,應(yīng)該是webgrindGUI版本太低了,我重裝了1.5版本后就可以顯示函數(shù)名了

2018年2月10日 10:39