简体   繁体   English

是否可以使用 IntelliJ + PHP + Xdebug + WSL(Windows 上的 Ubuntu)?

[英]Is it possible to use IntelliJ + PHP + Xdebug + WSL (Ubuntu on Windows)?

I've got a PHP app that I am developing on Windows using IntelliJ rather than PHPStorm (as that is what I have a subscription for).我有一个 PHP 应用程序,我正在使用 IntelliJ 而不是 PHPStorm 在 Windows 上开发(因为这是我订阅的)。

I want to replicate the production environment and do some live debugging on WSL.我想复制生产环境并在 WSL 上进行一些实时调试。

So far, I've tried Mounting \WSL$\Ubuntu.... inside IntelliJ *can read files, can't write) and then I tried setting a local (C:) folder... Inside WSL, I set the root web folder to be this.到目前为止,我已经尝试在 IntelliJ 中安装 \WSL$\Ubuntu.... *可以读取文件,无法写入),然后我尝试设置本地(C :) 文件夹......在 WSL 中,我设置了根 web 文件夹就是这个。 It works on.txt files, but, I can't get PHP to return anything before the thread terminates.它适用于 .txt 文件,但是,我无法让 PHP 在线程终止之前返回任何内容。

I'm just a bit stumped here - can anyone assist?我在这里有点难过 - 有人可以帮忙吗?

Thanks谢谢

You can run PhpStorm inside WSL.您可以在 WSL 中运行 PhpStorm。 See https://github.com/JetBrains/projector-server#not-modifying-your-application-code for more information, but UI will work only in Chrome and Firefox (not in Edge).有关详细信息,请参阅https://github.com/JetBrains/projector-server#not-modifying-your-application-code ,但 UI 仅适用于 Chrome 和 Firefox(不适用于 Edge)。 Found in https://youtrack.jetbrains.com/issue/IDEA-242627 .https://youtrack.jetbrains.com/issue/IDEA-242627中找到。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM