xdebug不会在断点停止 [英] xdebug won't stop at breakpoint

查看:447
本文介绍了xdebug不会在断点停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了几个小时来设置我的IDE,使用eclipse和xdebug调试PHP。除了在eclipse上设置的断点之外,一切都OK。如果我双击一行以添加一个断点,调试器希望停止..如果添加行xdebug_break(),调试器停止在行...



这可能是配置的问题。可以帮助我吗?




  • Eclipse:Eclipse PDT 2.2.0全部在
    Windows 32位

  • Xdebug:5.3 VC6
    (32位)

  • PHP:PHP版本5.3.3



PHP.ini

  [xdebug] 
xdebug.remote_enable = 1
xdebug.remote_host = localhost
xdebug.remote_port = 9000
xdebug.remote_handler =dbgp
xdebug.remote_mode = req
xdebug.profiler_enable = 1
xdebug。 profiler_output_dir =c:/ temp
xdebug.collect_params = 4
xdebug.collect_return = on
xdebug.collect_vars = on

xdebug.show_local_vars = 1


解决方案

如果xdebug不停在代码的任何部分, xdebug_break()到这部分代码。


I spend some hours to set up my IDE to debug PHP with eclipse and xdebug.. Everything is ok except the breakpoint I set on eclipse. If I double-click on a line to add a breakpoint, the debugger want not to stop.. If a add the line xdebug_break() the debugger stops well at the line...

It's maybe a problem with the configuration. Could anyone help me ?

  • Eclipse: Eclipse PDT 2.2.0 All In Ones Windows 32 bits
  • Xdebug: 5.3 VC6 (32 bit)
  • PHP: PHP Version 5.3.3

PHP.ini

[xdebug]
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.remote_mode=req
xdebug.profiler_enable = 1
xdebug.profiler_output_dir = "c:/temp"
xdebug.collect_params = 4
xdebug.collect_return = on
xdebug.collect_vars = on

xdebug.show_local_vars = 1

解决方案

If xdebug do not stop in any part of your code, add xdebug_break() to this part of the code.

这篇关于xdebug不会在断点停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆