PHP(WAMP) - Exlipse PDT,xDebug:不在断点停止 [英] PHP (WAMP) - Exlipse PDT, xDebug: not stopping at breakpoint

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

问题描述

只有当我检查选项第一行中断时,我才能调试。如果我不检查它,并在某一行放置一个断点,那么调试器不会停止在该行。

I am able to debug only if I check the Option "Break at First line". If I un-check it and place a breakpoint at some line then the debugger doesn't stop at that line.

我需要调试器停止在我设置的断点,不在文件的第一行。

I need the debugger to stop at the breakpoints I set, not at the fist line of the file.

我在php.ini文件中添加了以下行:

I've added the following lines in my php.ini file:

zend_extension = "c:/wamp/bin/php/php5.3.8/ext/php_xdebug-2.1.2-5.3-vc9.dll"
xdebug.remote_enable = on
xdebug.remote_handler = dbgp
xdebug.remote_host = localhost
xdebug.remote_port = 9000

我也可以使用相同的设置在记事本++ DBGp调试器上正常调试。

I'm also being able to debug properly on Notepad++ DBGp debugger with this same setting.

SO上有类似的帖子,但没有解决我的问题。在这个问题中,无法使PHP PDT xDebug停止在Eclipse的断点 DevNull 说,问题解决了Juno,但是我' m使用Juno自己,并有问题。

There are similar posts on SO but none solves my problem. In SO question "Can not make PHP PDT xDebug to stop at breakpoints in Eclipse", DevNull says the problem was solved for Juno, but I'm using Juno myself and having the problem.

以下是我的Eclipse设置的一些屏幕截图:


  • 窗口 - >首选项 - > PHP - >调试:



  • 窗口 - >首选项 - > PHP - > PHP可执行文件:



  • 窗口 - >首选项 - > PHP - > PHP可执行文件 - >执行环境:



  • 窗口 - >首选项 - > PHP - > PHP Interpreters:

    Here are some screenshots of my Eclipse settings:

  • Window --> Preferences --> PHP --> Debug:
  • Window --> Preferences --> PHP --> PHP Executables:
  • Window --> Preferences --> PHP --> PHP Executables --> Execution Environment:
  • Window --> Preferences --> PHP --> PHP Interpreters:




  • 窗口 - >首选项 - > PHP - > PHP服务器:


  • Window --> Preferences --> PHP --> PHP Servers:
  • 我将Mozilla Firefox用作我的外部Web浏览器。 (窗口 - >常规 - > Web浏览器



  • 项目调试配置 - > PHP Web应用程序 - >调试器 - >服务器调试器设置为 XDebug ,XDebug调试端口设置为 9000

  • I'm using Mozilla Firefox as my external web browser. (Window --> General --> Web Browser)

  • The Project Debug Configuration --> PHP Web Application --> Debugger --> Server Debugger is set to XDebug and XDebug debug port is set to 9000
  • 希望这些有助于我帮助我。

    Hope those will help someone help me.

    推荐答案

    可能你应该尝试升级xdebug版本?

    May be you should try to upgrade xdebug version?

    另外你是怎么安装Juno的?只需清洁安装或更新?

    Also how did you installed Juno? Just clean install or update?

    尝试在另一个文件夹中清洁安装,并复制您的工作区设置。或者试试没有他们。

    Try clean install in another folder and copy you workspace settings. Or try without them.

    这篇关于PHP(WAMP) - Exlipse PDT,xDebug:不在断点停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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