phpstrom开启debug

首先编辑php.ini文件,找到xdebug,改为一下代码

[XDebug]
xdebug.profiler_output_dir="D:phpStudy mpxdebug"
xdebug.trace_output_dir="D:phpStudy mpxdebug"
zend_extension="D:phpStudyphpphp-5.4.45extphp_xdebug.dll"
xdebug.remote_enable =1
xdebug.remote_handler = dbgp
xdebug.remote_host = localhost
xdebug.remote_mode = req
xdebug.remote_port = 9000
xdebug.idekey=PHPSTORM

然后phpstrom编辑file->setting,搜索debug

找到xdebug端口改未9000跟配置一致,

原文地址:https://www.cnblogs.com/lckblog/p/8527209.html