我使用以下链接在Windows xampp 1.7.7上安装了xdebug和webgrind:link。转到http:// localhost / webgrind会给出如下内容,而不是显示配置文件脚本。没有下拉菜单或要选择的内容。
Select a cachegrind file above
(looking in C:\xampp\htdocs\webgrind\tmp/ for files matching /^cachegrind.out..+..+$/)
但是我在tmp文件夹中有2个以cachegrind.out名称开头的文件。
我在(xampp / php / php.ini)中的设置是
zend_extension = "C:\xampp\php\ext\php_xdebug-2.2.2-5.3-vc9.dll"
xdebug.profiler_output_dir = "C:\xampp\htdocs\webgrind\tmp"
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_name = cachegrind.out.%t.%p
webgrind / config.php设置
static $storageDir = 'C:\xampp\htdocs\webgrind\tmp';
static $profilerDir = 'C:\xampp\htdocs\webgrind\tmp';
我也试过这些
static $storageDir = '';
static $profilerDir = '/tmp';
但没有结果。我怎样才能让它发挥作用?
答案 0 :(得分:0)
我偶然得到了这个,在xampp / php / php.ini文件中使用值。
以下是xdebug.profiler_append
从0到1的事物更改值。
答案 1 :(得分:0)
我有相同的pb,在我的Windows 7 OS中花了很长时间才有xampp 1.7.7我发现了
php_xdebug-2.2.2-5.3-vc9.dll很糟糕,即使是第一次下载后的php_xdebug-2.2.2-5.3-vc9.exe,看了一下php.ini我发现好了默认xdebug就在这里有额外的lignes所以我删除了半结肠;
** [XDebug] zend_extension =“C:\ Programs \ xampp \ php \ ext \ php_xdebug.dll”
xdebug.auto_trace
;类型:布尔值,默认值:0
;当此设置设置为on时,将在...之前启用函数调用的跟踪
;脚本运行。这使得跟踪auto_prepend_file中的代码成为可能。
; xdebug.auto_trace = 0 **
; xdebug.collect_includes
;类型:布尔值,默认值:1
是的,xampp附带了很好的php_xdebug.dll
所以使用它,不要看远:)也许这会帮助你
答案 2 :(得分:0)
由于便携式xampp,它也可能是相对寻址的问题。 你可以像这样更改你的Xdebug地址。
前
[XDebug]
zend_extension = "\xampp\php\ext\php_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir = "\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
;xdebug.trace_output_dir = "\xampp\tmp"
后
[XDebug]
zend_extension = "D:\xampp\php\ext\php_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir = "D:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
;xdebug.trace_output_dir = "\xampp\tmp"