Xdebug不会在断线处停下来

时间:2013-04-24 11:45:02

标签: php zend-framework netbeans xdebug

好吧,所以我的xdebug无法正常工作。我曾经让它在断点处停下来,但之后就不会这样了,我试图修改一些东西,现在它甚至没有在以前的条件下工作。

但是我确实停在了第一个块代码级别。像这样:

enter image description here

但是我又改变了一些东西,所以现在它不再起作用了。我的调试器控制台也是空的。 (一直是?:/)

enter image description here

现在它只停在断点所在的位置,但是如果我将其删除或将其更改为其他位置。它不会停在任何地方。

我会根据您的需要为您提供尽可能多的信息。

Netbeans信息:

Product Version: NetBeans IDE 7.2.1 (Build 201210100934)
Java: 1.7.0_10; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)

Xdebug的

xdebug support  enabled
Version 2.2.2
IDE Key netbeans-xdebug

Supported protocols Revision
DBGp - Common DeBuGger Protocol $Revision: 1.145 $

Directive   Local Value Master Value
xdebug.auto_trace   Off Off
xdebug.cli_color    0   0
xdebug.collect_assignments  Off Off
xdebug.collect_includes On  On
xdebug.collect_params   0   0
xdebug.collect_return   Off Off
xdebug.collect_vars Off Off
xdebug.coverage_enable  On  On
xdebug.default_enable   On  On
xdebug.dump.COOKIE  no value    no value
xdebug.dump.ENV no value    no value
xdebug.dump.FILES   no value    no value
xdebug.dump.GET no value    no value
xdebug.dump.POST    no value    no value
xdebug.dump.REQUEST no value    no value
xdebug.dump.SERVER  no value    no value
xdebug.dump.SESSION no value    no value
xdebug.dump_globals On  On
xdebug.dump_once    On  On
xdebug.dump_undefined   Off Off
xdebug.extended_info    On  On
xdebug.file_link_format no value    no value
xdebug.idekey   netbeans-xdebug netbeans-xdebug
xdebug.max_nesting_level    100 100
xdebug.overload_var_dump    On  On
xdebug.profiler_aggregate   Off Off
xdebug.profiler_append  Off Off
xdebug.profiler_enable  Off Off
xdebug.profiler_enable_trigger  Off Off
xdebug.profiler_output_dir  C:\xampp\tmp    C:\xampp\tmp
xdebug.profiler_output_name xdebug_profile.%R::%u   xdebug_profile.%R::%u
xdebug.remote_autostart Off Off
xdebug.remote_connect_back  Off Off
xdebug.remote_cookie_expire_time    3600    3600
xdebug.remote_enable    On  On
xdebug.remote_handler   dbgp    dbgp
xdebug.remote_host  127.0.0.1   127.0.0.1
xdebug.remote_log   no value    no value
xdebug.remote_mode  req req
xdebug.remote_port  9000    9000
xdebug.scream   Off Off
xdebug.show_exception_trace Off Off
xdebug.show_local_vars  Off Off
xdebug.show_mem_delta   Off Off
xdebug.trace_enable_trigger Off Off
xdebug.trace_format 0   0
xdebug.trace_options    0   0
xdebug.trace_output_dir C:\xampp\tmp    C:\xampp\tmp
xdebug.trace_output_name    trace.%c    trace.%c
xdebug.var_display_max_children 128 128
xdebug.var_display_max_data 512 512
xdebug.var_display_max_depth    3   3

我正在运行 PHP版本5.4.4

Apache Version Apache / 2.4.2(Win32)OpenSSL / 1.0.1c PHP / 5.4.4 Apache API版本。

enter image description here

enter image description here

enter image description here

我也尝试过ZendDebugger,但这给了我一个php5.dll文件丢失错误。

1 个答案:

答案 0 :(得分:0)

问题可能是您的IDE与您的网络服务器之间的代码未同步。我看到你在localhost上运行,所以,你需要确保文件保存在正确的目录中,供你的web服务器选择。您可能正在调试旧版本的代码。碰巧我多次在VM上运行代码。