dongxifu5009 2015-09-08 16:50
浏览 37

使用XDebug在Eclipse MARS上调试PHP:错误:文件不存在

I am trying to follow the instructions on this page. I am trying to configure Eclipse for PHP, Mars Release (4.5.0), to use XDebug so I can set breakpoints in my PHP code and track variables. Here is what I have done so far:

C:\xampp\php\php.ini:

uncomment: zend_extension = "C:\xampp\php\ext\php_xdebug.dll"

uncomment and set: xdebug.remote_enable = 1

restart Apache

In Eclipse, check out Windows | Preferences | PHP | Debug.

Click on the Debug icon, go to Debug Configurations | PHP Web Application and set XDebug as the debugger.

However, in the debug configurations, I am unable to set the server. I am using the latest version of XAMPP on Windows 7. Here is a screenshot:

enter image description here

What is wrong with my configuration and why am I getting the red [X] in the server configuration window? The only available menu entry from the drop-down menu is 'Default PHP Web Server'.

  • 写回答

1条回答 默认 最新

  • dporu02280 2015-09-08 17:29
    关注

    Just right click on your index.php and select Debug As | PHP Web Application from the drop down menu. This will automatically create the server configuration.

    评论

报告相同问题?

悬赏问题

  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 个人网站被恶意大量访问,怎么办
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制