简体   繁体   English

xDebug找不到我的文件。 总是在本地主机中查找

[英]xDebug cant find my files. Always looks in localhost

  1. I'm running win7-64bit, NetBeans 7.1.1 and WampServer 2.2 (which has xDebug) 我正在运行win7-64bit,NetBeans 7.1.1和WampServer 2.2(具有xDebug)
  2. I've configured php.ini (xdebug.remote_enable=on, etc.) 我已经配置了php.ini(xdebug.remote_enable = on等)
  3. I create a directory ( virtual host called example.dev ) and add a test file. 我创建一个目录( 名为example.dev的虚拟主机 )并添加测试文件。 (c:/wamp/example/test-xdebug.php) (c:/wamp/example/test-xdebug.php)
  4. 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

  5. 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。

  6. 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.

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