Netbeans 和 Zend 框架的 Xdebug 问题
尝试调试我的网站,我点击“调试项目”,打开一个浏览器窗口,调试器停在 index.php 文件(这是根文档)的第一行。 按“继续”始终停止在同一行。 似乎每个 Get 或 Post 都会导致调试器停在那里,我必须多次按下“Continue”才能让站点显示任何内容。 我没有在index.php 上放置任何断点。
另一件事是,显示调试站点的浏览器中丢失了所有图像。
谢谢! 阿维
Trying to debug my web site, I hit "Debug Project", get a browser window opened up, and the debugger stops at the first line of the index.php file (which is the root document).
Pushing Continue always stops at the same line.
It seems that every Get or Post is causing the debugger to stop there and I have to push Continue multiple times to get the site to show anything.
I did not place any breakpoint on index.php.
Another thing is that all images are missing from the browser that shows the debuged site.
Thanks!
Avi
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于您的第一个问题,这是一个可配置的事情。有些人喜欢它。我和你一样觉得很烦人。执行此操作:
这应该将其设置为继续,直到遇到您明确设置的断点。如果在执行第一行项目代码之前遇到问题,请重新检查,以便您可以看到执行前的初始状态。
对于你的第二个问题,我不记得曾经见过这样的事情。听起来服务器端的某些东西可能没有正确配置? 也许有关运行配置的某些设置不正确?要查看运行配置:
例如,我的 PHP 项目运行为远程网站; 项目 URL 是
http://www.example.com/
(您的 URL 将指向您的测试服务器,也许是 localhost?); 索引文件是src/index.php
因为我的项目是从服务器上的/src子目录运行的(以匹配我们的版本控制有源代码的主目录在/src下);我不需要任何参数。For your first issue, that's a configurable thing. Some people like it. I find it as annoying as you do. Do this:
That should set it to continue until it hits a breakpoint that you explicitly set. Re-check it if you are having issues before the first line of project code is executed, so you can see the initial state before execution.
For your second issue, I don't remember ever seeing something like that. It sounds like something on the server side is possibly not configured properly? Maybe something about the run configuration is not set right? To look at the run configuration:
As an example, my PHP project is Run As a Remote Web Site; the Project URL is
http://www.example.com/
(yours will point to your test server, maybe localhost?); the Index File issrc/index.php
because my project is run from the /src subdirectory on the server (to match the fact that our version control has the main directory of the source code under /src); I don't need any Arguments.