我在 Mac Mountain Lion osX 10.8.2 上安装了最新的 Xampp 和 Php 5.3.我刚刚安装了 Xdebug 并在 php.ini 中进行了配置.我从 this 链接下载并按照说明进行操作.还将以下条目放入 php.ini
I have the latest Xampp and Php 5.3 on Mac Mountain Lion oSX 10.8.2. I just installed Xdebug and configured it in the php.ini. I downloaded from this link and followed the instructions. Also put the following entries in php.ini
[Xdebug]
zend_extension="/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/xdebug.so"
xdebug.remote_port = 9000
xdebug.profiler_enable = 1
xdebug.profiler_output_dir = "/Applications/XAMPP/xamppfiles/temp"
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_enable = On
xdebug.trace_output_dir = "/Applications/XAMPP/xamppfiles/temp"
php -m 显示 Xdebug 模块,但 phpinfo() 不显示 Xdebug.阅读问题的解决方案 为什么 xdebug 没有出现在 phpinfo() 和 phpinfo() 中没有 xdebug 它对我不起作用.注意:我已经多次从 Xampp Control 重新启动我的 Apache.
Php -m displays the Xdebug modules but the phpinfo() does not show Xdebug. Read the solutions to questions Why is xdebug not showing up in phpinfo() and No xdebug in phpinfo() and it does not work for me. Note: I have restarted my Apache from Xampp Control multiple times.
建议
谢谢.
所以这更像是 Mountain Lion 的端口问题.默认情况下,Mac 将 9000 分配给防火墙的东西,并且它一直为一个或另一个东西分配各种端口.我使用 Mac 上的 Network Utility Port Scan 来检查可用端口.此外,运行下面描述的 php 脚本可能会提供一些调试信息,如 这里
So this was more of a port issue on Mountain Lion. By default 9000 is assigned by Mac for firewall stuff and it kept assigning various ports for one or the other thing. I utilized Network Utility Port Scan on Mac to check for available ports. Also running the php script described below may give some debugging info as provided here
来自 这个堆栈溢出问题帮助最大.
The detailed Configuring Eclipse part from this Stack Overflow Question helped the most.
这篇关于Xdebug 已安装,但未在 Xampp 的 Phpinfo 中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
将 window tester 与 eclipse 集成以测试 UIIntegrate window tester with eclipse for testing UI(将 window tester 与 eclipse 集成以测试 UI)
如何将特定键绑定到 Eclipse 中的不同启动配置?How can I bind a specific key to different launch configurations in Eclipse?(如何将特定键绑定到 Eclipse 中的不同启动配置?)
使用屏幕键盘键入时,Android 中的 EditText 不显示EditText in Android doesn#39;t show text when typing while using the on-screen keyboard(使用屏幕键盘键入时,Android 中的 EditText 不显示文
Kivy、Eclipse 和 PyDev(也是 PyPy)Kivy, Eclipse and PyDev (also PyPy)(Kivy、Eclipse 和 PyDev(也是 PyPy))
Eclipse-CDT:在自动生成的包含防护中使用命名空间Eclipse-CDT: Use Namespace in automatic generated include-guards(Eclipse-CDT:在自动生成的包含防护中使用命名空间)
Eclipse/Java - 导入 java.(namespace).* 有害吗?Eclipse/Java - is it harmful to import java.(namespace).*?(Eclipse/Java - 导入 java.(namespace).* 有害吗?)