XAMPP/WAMP 服务器中是否默认安装了任何调试器,或者我们手动下载并配置了调试器?还要推荐最好的 PHP 调试器。
最佳答案
如果您想使用 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"
或者检查一下:检查一下:https://www.youtube.com/watch?v=HbJOP0YcSjs
关于XAMPP 中的 PHP 调试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8418453/