无法通过netbeans和xdebug调试内部页面

时间:2015-06-24 11:11:32

标签: php netbeans xdebug

我的php.ini配置:

zend_extension = "D:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=1
xdebug.remote_connect_back=1
xdebug.remote_host=192.168.1.106
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.remote_mode="req"
xdebug.remote_log="D:\logs.log"
xdebug.auto_trace=off
xdebug.default_enable=on

在Windows 7上运行XAMPP,

所以我可以调试网站根目录http://mysite.local.com

但是我无法像http://mysite.local.com/admin那样调试内部页面!

Netbeans说:等待连接(netbeans-xdebug)

更新:

我的断点位于代码

的正常行
$a='foo';

更新:找到解决方案

首先停止相关联:工具 - >选项 - > PHP-> Debuging。应检查此项以使断点有效。

首先我运行主页然后我可以通过点击链接调试内部网页或输入url manualy ,它运作良好

1 个答案:

答案 0 :(得分:0)

如果我没记错的话,netbeans允许你在不会破坏的行上设置断点 以下行不起作用:include(),require(), try {,catch(){,空行。这对我来说非常烦人。

确保在你的内部页面php文件中,你在函数调用或变量赋值上设置断点,然后再给它一次。

道歉,如果这听起来很明显,那不适合我:)