phpstrom 调试thinkphp6

332 阅读1分钟

先启动程序

php think run 

修改phpini

```
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_autostart=1
xdebug.remote_enable=On
xdebug.ideakey="PHPSTORM"
```

配置服务器 servers

127.0.0.1
8000
xdebug

配置dbgp proxy

idekey PHPSTORM
host localhost
port 9000

配置 php web page

注意

1 关闭你的代理 走了127.0.0.1 影响调试