开发者

Issue with Xdebug with Netbeans and Zend framework

Trying to debug my web site, I hit "Debug Project", get a browser w开发者_Python百科indow 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


For your first issue, that's a configurable thing. Some people like it. I find it as annoying as you do. Do this:

  • Click on Tools, then Options, and then on the PHP icon in the option dialog's toolbar.
  • Make sure the General tab is selected.
  • In the Debugging section, un-check "Stop at first line"

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:

  • Right-click on the top-most project node in the Projects tab over on the left.
  • Click on Properties
  • Choose Run Configuration under Categories.

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 is src/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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜