简体   繁体   中英

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).

I want to replicate the production environment and do some live debugging on 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. It works on.txt files, but, I can't get PHP to return anything before the thread terminates.

I'm just a bit stumped here - can anyone assist?

Thanks

You can run PhpStorm inside WSL. 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). Found in https://youtrack.jetbrains.com/issue/IDEA-242627 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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