如果您想使用 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"
Run Code Online (Sandbox Code Playgroud)
或者看看这个:看看这个:https://www.youtube.com/watch ?v=HbJOP0YcSjs