如何配置Vagrant在WSL上使用PHPStorm进行Xdebug断点调试?

2026-05-22 22:402阅读0评论SEO资讯
  • 内容介绍
  • 文章标签
  • 相关推荐

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

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 设置的一样:

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

配置完成,测试debug

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

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

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

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

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 设置的一样:

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

配置完成,测试debug

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

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

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