問題描述
這與 XDebug profiling in PHP - can't get 類似輸出 但我的是在 Windows 上,我指定了完整路徑(解決了他的問題)
This is a similar problem to XDebug profiling in PHP - can't get output but mine is on windows and I have the full path specified (which solved his problem)
即使我啟用了探查器,我也沒有得到任何輸出.以下是 xdebug 設置的副本(我縮進了所有未注釋的選項.) - 請注意xdebug 工作正常,因為我一直在收到標準的 xdebug 錯誤. 如果它有什么不同,我正在使用 xampp、cakephp、php 5.3
I am not getting any output even though I have enabled the profiler. Below is a copy of xdebug setup (I have indented all the options that have been uncommented.) - Please note that xdebug is working fine as Ii have been getting the standard xdebug errors. If it make any difference I am using xampp, cakephp, php 5.3
任何幫助將不勝感激.
[XDebug]
zend_extension = "C:xamppphpextphp_xdebug.dll"
;xdebug.auto_trace = 0
;xdebug.collect_includes = 1
;xdebug.collect_params = 0
;xdebug.collect_return = 0
;xdebug.collect_vars = "Off"
;xdebug.default_enable = "On"
;xdebug.dump.SERVER = REMOTE_ADDR,REQUEST_METHOD
;xdebug.dump.SERVER = REMOTE_ADDR,REQUEST_METHOD
;xdebug.dump.COOKIE = ""
;xdebug.dump.FILES = ""
;xdebug.dump.GET = ""
;xdebug.dump.POST = ""
;xdebug.dump.REQUEST = ""
;xdebug.dump.SERVER = ""
;xdebug.dump.SESSION = ""
;xdebug.dump_globals = 1
;xdebug.dump_once = 1
;xdebug.dump_undefined = 0
;xdebug.extended_info = 1
;xdebug.file_link_format = ""
;xdebug.idekey = ""
;xdebug.manual_url = "http://www.php.net"
;xdebug.max_nesting_level = 100
;xdebug.overload_var_dump = 1
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:xampp mp"
xdebug.profiler_output_name = "xdebug_profile.%R::%u"
;xdebug.remote_autostart = 0
xdebug.remote_enable = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
;xdebug.remote_log = "none"
;xdebug.remote_mode = "req"
xdebug.remote_port = 9000
;xdebug.show_exception_trace = 0
;xdebug.show_local_vars = 0
;xdebug.show_mem_delta = 0
;xdebug.trace_format = 0
;xdebug.trace_options = 0
xdebug.trace_output_dir = "C:xampp mp"
;xdebug.trace_output_name = "trace.%c"
;xdebug.var_display_max_children = 128
;xdebug.var_display_max_data = 512
;xdebug.var_display_max_depth = 3
推薦答案
我認為這與xdebug.profiler_output_name"設置有關
I think it's to do with the "xdebug.profiler_output_name" setting
我復制了您的配置,但更改了xdebug.profiler_output_name"的值,如下所示
I copied your config, but changed the value of "xdebug.profiler_output_name" like below
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
它工作正常,但使用您現有的xdebug.profiler_output_name"值卻沒有
And it worked OK, but with your existing value of "xdebug.profiler_output_name" it didn't
我認為這與它不允許輸出文件名中的冒號有關
I think it's to do with it not allowing colons in the output file name
希望這能幫助/解決您的問題!
Hope this helps/solves your problem!
僅供參考,以下是有效的完整設置
Just for reference, here are the full settings that work
[XDebug]
zend_extension = "C:xamppphpextphp_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:xampp mp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.trace_output_dir = "C:xampp mp"
編輯 2:
由于答案獲得了很多點擊,我想我會解釋原因.在問題的配置文件中,output_name
包含一個 :
字符,這是 Linux 上文件名中允許的字符,Windows 上不允許.
Since the answer is getting a lot of hits, just thought I'd explain why. In the config file in the question, the output_name
contains a :
character, which is an allowed character in a filename on Linux, but not Windows.
這篇關于Xdebug 和無分析輸出的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!