如何通过PhpStorm调试ThinkPHP6框架?

2026-04-03 03:551阅读0评论SEO教程
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计191个文字,预计阅读时间需要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`

如何通过PhpStorm调试ThinkPHP6框架?

先启动程序

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 影响调试

本文共计191个文字,预计阅读时间需要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`

如何通过PhpStorm调试ThinkPHP6框架?

先启动程序

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 影响调试