如何配置Vagrant(WSL) PHPStorm Xdebug断点调试环境?

2026-04-01 08:231阅读0评论SEO基础
  • 内容介绍
  • 文章标签
  • 相关推荐

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

如何配置Vagrant(WSL) PHPStorm Xdebug断点调试环境?

1. Vagrant (Linux) 环境下 Xdebug 配置: - zend_extension=xdebug.so - xdebug.remote_enable=1 - xdebug.remote_connect_back=1 - xdebug.remote_port=9100 - xdebug.idekey=PHPSTORM - xdebug.remote_autostart=1 - xdebug.remote_handler=dbgp

1.Vagrant (LInux)环境下 Xdebug 配置 :

zend_extension=xdebug.so xdebug.remote_enable = 1 xdebug.remote_connect_back = 1 xdebug.remote_port = 9100 xdebug.idekey = "PHPSTORM" xdebug.remote_autostart = 1 xdebug.remote_handler="dbgp" xdebug.remote_mode="req"

2.PHPtorm 配置:

设置好端口,和Xdebug 设置的一样:

设置好 目录映射,这很关键

如何配置Vagrant(WSL) PHPStorm Xdebug断点调试环境?

配置完成,测试debug

RUN->Start Listening for PHP debug connections->打断点->debug

浏览器访问网站, PHPstorm 那边访问搞定!!

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持易盾网络。

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

如何配置Vagrant(WSL) PHPStorm Xdebug断点调试环境?

1. Vagrant (Linux) 环境下 Xdebug 配置: - zend_extension=xdebug.so - xdebug.remote_enable=1 - xdebug.remote_connect_back=1 - xdebug.remote_port=9100 - xdebug.idekey=PHPSTORM - xdebug.remote_autostart=1 - xdebug.remote_handler=dbgp

1.Vagrant (LInux)环境下 Xdebug 配置 :

zend_extension=xdebug.so xdebug.remote_enable = 1 xdebug.remote_connect_back = 1 xdebug.remote_port = 9100 xdebug.idekey = "PHPSTORM" xdebug.remote_autostart = 1 xdebug.remote_handler="dbgp" xdebug.remote_mode="req"

2.PHPtorm 配置:

设置好端口,和Xdebug 设置的一样:

设置好 目录映射,这很关键

如何配置Vagrant(WSL) PHPStorm Xdebug断点调试环境?

配置完成,测试debug

RUN->Start Listening for PHP debug connections->打断点->debug

浏览器访问网站, PHPstorm 那边访问搞定!!

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持易盾网络。