简体   繁体   English

使用 Eclipse 在 Xdebug 中跳过新项目的断点

[英]Breakpoints Skipped in Xdebug with Eclipse for New Project

XDebug was working great for my previous project, but when I created a new project, it breaks at the first line but skips all break points thereafter. XDebug 在我以前的项目中运行良好,但是当我创建一个新项目时,它在第一行中断,但此后跳过所有断点。 When I first set up Xdebug, I had a similar problem (but it did not even break at the first line and gets stuck on "Launching..."), it was solved when I changed xdebug.remote_port to 9001 in my php.ini.当我第一次设置 Xdebug 时,我遇到了类似的问题(但它甚至没有在第一行中断并卡在“Launching...”上),当我在我的 php 中将 xdebug.remote_port 更改为 9001 时,它得到了解决。尼。 Right now I have现在我有

zend_extension = /usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so
xdebug.remote_port=9001
xdebug.remote_enable=1

in my php.ini.在我的 php.ini 中。 I am using this to develop a custom Drupal module, and I have the Drupal extensions (*.module, *.install etc) listed under the PHP content type in my Eclipse settings. I am using this to develop a custom Drupal module, and I have the Drupal extensions (*.module, *.install etc) listed under the PHP content type in my Eclipse settings. When I go back and try debugging my old project, all breakpoints still work.当我 go 返回并尝试调试我的旧项目时,所有断点仍然有效。 I tried closing the old project, and restarting Eclipse before debugging the new one.我尝试关闭旧项目,并在调试新项目之前重新启动 Eclipse。 Breakpoints in the new project are still skipped.新项目中的断点仍然被跳过。

Am I forgetting some project setup step?我忘记了一些项目设置步骤吗? I just went to New>>PHP Project, then set up an SVN repository and started working.我刚去了New>>PHP Project,然后设置了一个SVN存储库并开始工作。

I am using Eclipse Helios, with PDT SDK Feature 2.2.1.我正在使用带有 PDT SDK 功能 2.2.1 的 Eclipse Helios。

i'm having a similar issue with vista+netbeans+wamp+chrome+drupal.我遇到了与 vista+netbeans+wamp+chrome+drupal 类似的问题。 if i set a breakpoint in the function line statement, xdebug is able to catch the breakpoint.如果我在 function 行语句中设置断点,xdebug 能够捕获断点。 if i put the breakpoint inside a function, xdebug skips the breakpoint.如果我将断点放在 function 中,xdebug 会跳过断点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM