2015-11-03 65 views
1

關於xdebug.trace_enable_trigger_value:「此設置可用於限制誰可以使用XDEBUG_TRACE功能,如xdebug.trace_enable_trigger中概述的。當從空字符串的默認值更改時,值的Cookie,GET或POST參數需要將共享密鑰集與此設置進行匹配,以便生成跟蹤文件。「 (xdebug doc)。等效爲xdebug.profiler_enable_trigger_value使用觸發器值的xdebug跟蹤和分析器文件

我的XDebug 2.2.3,這在php.ini:

xdebug.trace_enable_trigger=1 
xdebug.trace_enable_trigger_value="miko" 

但是,如果我通過什麼作爲價值XDEBUG_TRACE參數(無論是通過GET參數或一個cookie),它仍然會生成跟蹤文件。那麼我怎麼才能讓這個觸發值真的有用呢?

回答

0

您需要將您的XDebug升級到高於V2.3這個工作,從文檔:

xdebug.trace_enable_trigger_value 
Type: string, Default value: "", Introduced in Xdebug >= 2.3 
This setting can be used to restrict who can make use of the XDEBUG_TRACE functionality as outlined in xdebug.trace_enable_trigger. When changed from its default value of an empty string, the value of the cookie, GET or POST argument needs to match the shared secret set with this setting in order for the trace file to be generated.