一、需要添加到php.ini中的内容
里面的各种地址,按照实际环境与需求修改
[XDebug]zend_extension="D:\phpStudy\php\php-7.1.12-x86\ext\php_xdebug-2.5.5-7.1-vc14.dll";是否开启远程调试xdebug.remote_enable = on;是否开启远程调试自动启动xdebug.remote_autostart = 1;允许调试的客户端IPxdebug.remote_host=127.0.0.1;是否开启调试内容xdebug.profiler_enable = 0xdebug.profiler_enable_trigger = 0xdebug.profiler_output_name = cachegrind.out.%t.%p;调试输出路径xdebug.profiler_output_dir="D:\phpStudy\tmp\xdebug"xdebug.show_local_vars=0xdebug.auto_trace = On;跟踪输出路径xdebug.trace_output_dir="D:\phpStudy\tmp\xdebug"
二、如果把上面配置信息添加到系统path那个PHP环境中时,则能调试的是 PHP script
三、添加到本地web环境中,则是调试PHP web page
PhpStrom调试,由XDebug提供支持
原文地址:https://www.cnblogs.com/zhaoxlchn/p/8496696.html