Giter VIP home page Giter VIP logo

Comments (18)

jksusu avatar jksusu commented on August 24, 2024 2

wsl2 如果出现如图提示
image
需要配置一个环境变量。直接在你 启动脚本的终端执行一下 set PHP_IDE_CONFIG=serverName="your server name"
或者 export PHP_IDE_CONFIG=serverName="your server name",另外我测试电脑重启后需要重复设置一遍。
servername 配置路径在phpstrom File/Languages/PHP/Servers 中。这里的 name 是你需要设置环境变量的 serverName。

from yasd.

huanghantao avatar huanghantao commented on August 24, 2024

我没用过wsl。可能是remote_host你得改改。

from yasd.

tw2066 avatar tw2066 commented on August 24, 2024

可以过来了
目录貌似映射不上

在本地找不到文件 '/mnt/d/WWW/hf20/test.php'。
要修复,请通过环境变量 PHP_IDE_CONFIG 设置服务器名称,然后重新启动调试会话。

from yasd.

huanghantao avatar huanghantao commented on August 24, 2024

可以过来了
目录貌似映射不上

在本地找不到文件 '/mnt/d/WWW/hf20/test.php'。
要修复,请通过环境变量 PHP_IDE_CONFIG 设置服务器名称,然后重新启动调试会话。

你应该需要配置一下wslwindows的文件映射。

from yasd.

tw2066 avatar tw2066 commented on August 24, 2024

phpstrom上设置了目录映射 ;
原来是sdebug是可以; 但是yasd没有生效

from yasd.

huanghantao avatar huanghantao commented on August 24, 2024

phpstrom上设置了目录映射 ;
原来是sdebug是可以; 但是yasd没有生效

那可能是有些问题了,我们后续修复下。

from yasd.

gghtrt520 avatar gghtrt520 commented on August 24, 2024

我想问问 我Remote SSH 连接到WSL中调试,然后在本机通过IP访问,这样的话我host该怎么配置呢?

from yasd.

gghtrt520 avatar gghtrt520 commented on August 24, 2024

https://vipkshttps12.wiz.cn/ks/note/view/5d13fa40-38f7-11eb-8567-bfa9bcfd962e/f6de6180-48bd-11eb-997b-7b3bfca43589/index_files/1609126651749-puf.png
能不能只监听我打断点的这个请求呢?

from yasd.

huanghantao avatar huanghantao commented on August 24, 2024

https://vipkshttps12.wiz.cn/ks/note/view/5d13fa40-38f7-11eb-8567-bfa9bcfd962e/f6de6180-48bd-11eb-997b-7b3bfca43589/index_files/1609126651749-puf.png
能不能只监听我打断点的这个请求呢?

看不了图片

from yasd.

gghtrt520 avatar gghtrt520 commented on August 24, 2024

https://vipkshttps12.wiz.cn/ks/note/view/5d13fa40-38f7-11eb-8567-bfa9bcfd962e/f6de6180-48bd-11eb-997b-7b3bfca43589/index_files/1609126651749-puf.png
能不能只监听我打断点的这个请求呢?

看不了图片

0880c08b0110fd88960e
这样能看到吗?现在就是监听了所有的请求,我只想监听了打了断点的那个请求

from yasd.

huanghantao avatar huanghantao commented on August 24, 2024

一个请求与vscode进行一次request,这应该是合理的。我不是很清楚你说的问题?

from yasd.

huanghantao avatar huanghantao commented on August 24, 2024

image

比如说我这个样子,因为上一次的请求你还没有调试完,所以会有两个调试会话。但是,你可以对这两个调试会话进行切换。

from yasd.

huanghantao avatar huanghantao commented on August 24, 2024

phpstrom上设置了目录映射 ;
原来是sdebug是可以; 但是yasd没有生效

我试了一下,我这里是可以从docker容器里面连接phpstorm调试的。方便加一个微信聊一下吗?我的微信codinghuang

from yasd.

huanghantao avatar huanghantao commented on August 24, 2024

phpstrom上设置了目录映射 ;
原来是sdebug是可以; 但是yasd没有生效

image

请检查一下目录是否映射正确。我这边映射完后是可以调试的

from yasd.

tw2066 avatar tw2066 commented on August 24, 2024

感谢 成功了 , 这边需要设置linux环境变量

from yasd.

coding-linheng avatar coding-linheng commented on August 24, 2024

@jksusu 兄弟有联系方式吗,有点东西请教下

from yasd.

jksusu avatar jksusu commented on August 24, 2024

from yasd.

gghtrt520 avatar gghtrt520 commented on August 24, 2024

@jksusu 兄弟有联系方式吗,有点东西请教下

[email protected] 这个是邮箱 啥问题啊

from yasd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.