[英]xDebug cant find my files. Always looks in localhost
I run debug in NetBeans and the following url displays: 我在NetBeans中运行调试,并显示以下URL:
http:// localhost /example/test-xdebug.php?XDEBUG_SESSION_START=netbeans-xdebug http:// localhost /example/test-xdebug.php?XDEBUG_SESSION_START=netbeans-xdebug
This fails. 这失败了。 The browser coughs up the following error message.
浏览器发出以下错误消息。
Not Found . 未找到 。
The requested URL /example/test-xdebug.php was not found on this server. 在此服务器上找不到请求的URL /example/test-xdebug.php。
I add the correct path to the virtual host, and xDebug Runs Flawlessly : 我将正确的路径添加到虚拟主机,并且xDebug 完美运行 :
http:// example.dev /test-xdebug.php?XDEBUG_SESSION_START=netbeans-xdebug http:// example.dev /test-xdebug.php?XDEBUG_SESSION_START=netbeans-xdebug
Tried every configuration I could think of. 尝试了所有我能想到的配置。 If this is a php.ini config issue, I sure as heck cant find it.
如果这是php.ini配置问题,我肯定无法找到它。 If its a NetBeans issue, there is not an option/interface to modify i (that I can find).
如果是NetBeans问题,则没有修改我的选项/界面(我可以找到)。
Please illuminate! 请照亮!
thanks sleeper 谢谢卧铺
Have you set the xdebug.remote_host option in your PHP config? 您是否在PHP配置中设置了xdebug.remote_host选项? For instance:
例如:
xdebug.remote_host="example.dev"
Also, is the Netbeans project config correct? 另外,Netbeans项目配置是否正确? Go to File > Project Properties (or right click project and click properties) then select Run Configuration and check the Project URL field.
转到文件>项目属性(或右键单击项目,然后单击属性),然后选择运行配置并检查项目URL字段。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.