XAMPP 中的 PHP 调试

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8418453/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 04:39:07  来源:igfitidea点击:

PHP debugging in XAMPP

phpdebuggingxamppwampxdebug

提问by sandbox

Is any debugger is installed by default in XAMPP/WAMP server or We have manually download and configure the debugger? Also do recommend the best PHP debugger.

XAMPP/WAMP 服务器中是否默认安装了任何调试器,或者我们手动下载并配置了调试器?也推荐最好的 PHP 调试器。

回答by Novasol

If you want to use Netbeans and Xampp with debugging, simply open c:\xampp\php\php.iniand add these rows. It worked for me like a charm.

如果您想在调试中使用 Netbeans 和 Xampp,只需打开c:\xampp\php\php.ini并添加这些行。它对我来说就像一种魅力。

xdebug.remote_handler="dbgp"
xdebug.remote_enable=on
xdebug.remote_port =9000
xdebug.remote_enable = 1
xdebug.profiler_enable = off
xdebug.profiler_trigger = off
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.profiler_output_dir = "C:\xampp\tmp"

Or check this out: Check this out: https://www.youtube.com/watch?v=HbJOP0YcSjs

或者看看这个:看看这个:https: //www.youtube.com/watch?v=HbJOP0YcSjs