如何在Fedora 17操作系统上安装Xdebug以便在netbeans 7.3(测试版)中使用它? 在Fedora上使用Xdebug和Netbeans进行调试
回答
安装的Xdebug:
须藤荫安装PHP-PECL-xdebug.x86_64
添加此线在/etc/php.ini
zend_extension=/usr/lib64/php/modules/xdebug.so
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
添加年底为php.ini与/etc/php-zts.d/xdebug.ini
相同的行:
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
允许端口的Xdebug
sudo semanage port -a -t http_port_t -p tcp 9000
现在找到你的netbeans.conf文件在您的系统:
sudo find/-name netbeans.conf
现在,打开该文件,并添加文本“-J-DORG。 netbeans.modules.php.dbgp.level = 400“在netbeans_default_options使得线看起来有点像这样:
netbeans_default_options =” - J-客户-J-XSS 2m -J -Xms32m -J-XX:PermSize = 32m -J-Dnetbeans.logger.console = true -J-ea -J-Dapple.laf.useScreenMenuBar = true -J-Dapple.awt.graphics.UseQuartz = true -J-Dsun.java2d.noddraw = true -J-Dsun.zip.disableMemoryMapping = true -J -Dsun.awt.disableMixing = true -J-Dnetbeans.extbrowser.manual_chrome_plugin_install = yes -J-Dorg.netbeans.modules.php .dbgp.level = 400"
重新启动两台NetBeans IDE和阿帕奇:
sudo service httpd restart
添加选项netbeans conf让它工作。谢谢 – Superbiji
Configure php.ini for xDebug
Use: output_buffering = Off
Comment out any lines that configures output_buffering such as output_buffering = 4096
Add the following to /etc/php.ini
zend_extension=”/usr/lib/php5/…../xdebug.so”
[xdebug]
;xdebug.remote_autostart = 0
xdebug.remote_enable = true
xdebug.remote_handler=dbgp
;xdebug.remote_mode=”req”
xdebug.remote_port = 9001
xdebug.remote_host = 127.0.0.1
xdebug.profiler_enable = 1
xdebug.profiler_output_dir = “/tmp/”
xdebug.idekey=”netbeans-xdebug”
- 1. 使用xDebug在Netbeans中进行调试
- 2. 用Netbeans和XDebug调试Wordpress
- 3. Netbeans - XDebug调试
- 4. Netbeans xdebug在Drupal 7上调试失败
- 5. 在OS X上使用Aptana Studio和Xdebug或Zend调试器进行PHP调试
- 6. Xdebug的远程调试使用NetBeans
- 7. 使用NetBeans/XDebug调试Zend Framework项目
- 8. 使用Netbeans和XDebug进行远程PHP调试(远程服务器)
- 9. 在MAMP上用CodeIgniter MacGDBp和Xdebug进行PHP调试
- 10. netbeans xdebug调试AJAX PHP
- 11. 使用xdebug在centos上进行远程调试6.4
- 12. 在eclipse中使用xdebug和cakephp进行调试PDT
- 13. 使用netbeans和xdebug进行调试将不起作用--netbeans不会启动浏览器
- 14. 在Debian操作系统上使用NetBeans和XDebug调试Symfony2项目
- 15. 使用xdebug和gdb进行远程调试
- 16. 使用设置Xdebug和PHPStorm进行调试
- 17. 使用Xdebug和Netbeans进行远程调试本地主机上的PHP网站的正确方法
- 18. Netbeans - 在Kubuntu上使用正确的JRE进行调试
- 19. Netbeans和Xdebug
- 20. 使用Netbeans使用xdebug调试php代码
- 21. Netbeans与xdebug不突出调试线
- 22. 调试的NetBeans PHP没有Xdebug的
- 23. Netbeans xDebug只在Mac上运行一次
- 24. 无法在Netbeans的运行PHP调试 - XDebug的
- 25. 使用XDebug + PHPStorm进行调试迫使我总是步入
- 26. php命令行使用xdebug调试
- 27. 的XDebug在XAMPP不NetBeans上
- 28. 在使用behat和selenium进行测试时启动Xdebug
- 29. 使用xDebug和PhpStorm调试VM
- 30. 使用Eclipse和xDebug在浏览器上调试PHP文件
或许相似? Ubuntu版本:http://stackoverflow.com/questions/12869189/netbeans-and-xdebug-in-linux/13021858#13021858 –
如果您安装VPN服务,有时会占用端口9000。然后你需要切换到例如9009 - Fedora上的一个常见问题(仅供参考) – pgampe
我已经将问题的解决方案转移到了您的答案中 - 希望现在已经解决了问题,因此它会停止标记。感谢您分享您发现的内容。 – Flexo