Local Community

Xdebug + phpstorm ad-on not working

Whenever I try to enable it, I get a popup error: Xdebug + PHPstorm eror the ENOCENT no such file or directory…

Same issue on both Windows 10 install and my MACOS Catalina install.

Any advice?

I have the same issue. The error message reads:

Error: ENOENT: no such file or directory, open ‘…\Local Sites…idea\workspace.xml’

I know the workspace file is there and I can open and edit it. This error is thrown by npm from what I can google. When I look at the project folder for the project the .idea\ path only shows php.xml

If you want me to by Local and move my hosting to flywheel, this is not a good start.

1 Like

Same issue here. Xdebug + phpstorm not working. Error: ENOENT: no such file or directory, open ‘…\Local Sites…idea\workspace.xml’.

Hi all,

Sorry for the trouble with the Xdebug + PhpStorm Add-on.

I just tested this using Local 5.2.7 in Windows 10 and was unable to reproduce the issue.

It may be related to the site paths or possibly even your usernames (e.g. username has a special character, apostrophe, etc). If possible, can you all provide the entire error that the Add-on is generating in the log file?

I made it work by doing this:
Copy the “runconfigurations” folder that local creates in the .idea folder in the target filesystem to the phpstorm .idea folder. Run the setup.
Worked for me! YMMV

Hi @gmccord,

Awesome! Glad to hear you figured out a workaround.

Can you elaborate on the above? Specifically what the target filesystem is? I’d love to get to the bottom of this so there isn’t a manual workaround!

I run this on a Mac/Catalina and a Windows 10 system. I think the issue is that my website files are in a different location from the PHPStorm files. For example, on my Mac:
“Local” website files: …/Local Sites/local-website/app/public
PHPStorm files: …/PhpstormProjects/website

The plugin seems to put its files in Local’s folder and it needs to be in PHPStorm’s.

Make sense?

Gray

Aha! Thanks for the explanation. I’ll see if I can’t replicate the error with a setup similar to yours.

Hello!

I’m using Win 10 and the latest LocalWP (5.4.2+3383). For a new site, I’m clicking the “Add run configuration to PHPStorm” and I get the following error:

image

I see some file been created under “D:\Local\testing\app\public.idea” but definitely not the whole set of them.

My username or path has no special characters. As far as I can see no errors are produced on the error log.

Update Once I manually create the workspace.xml file (an empty file with that name) in that dir, the error message changes

image

so there must be an issue with the callback creating this file.

Any update on this? This is also broken in 5.5.2. :frowning: