如何通过PHPStorm调试ThinkPHP6框架?

更新于
2026-09-24 12:40:19
2阅读来源:SEO资源
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计202个文字,预计阅读时间需要1分钟。

如何通过PHPStorm调试ThinkPHP6框架?

首先启动程序:`php think run`

修改`php.ini`文件,添加以下配置:

xdebug.remote_host=localhostxdebug.remote_port=9000xdebug.remote_handler=dbgpxdebug.remote_autostart=1xdebug.remote_enable=Onxdebug.ideakey=PHPSTORM

配置服务器,在`servers`中添加:

127.0.0.1:8

先启动程序

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

注意

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

如何通过PHPStorm调试ThinkPHP6框架?

本文共计202个文字,预计阅读时间需要1分钟。

如何通过PHPStorm调试ThinkPHP6框架?

首先启动程序:`php think run`

修改`php.ini`文件,添加以下配置:

xdebug.remote_host=localhostxdebug.remote_port=9000xdebug.remote_handler=dbgpxdebug.remote_autostart=1xdebug.remote_enable=Onxdebug.ideakey=PHPSTORM

配置服务器,在`servers`中添加:

127.0.0.1:8

先启动程序

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

注意

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

如何通过PHPStorm调试ThinkPHP6框架?