PhpStorm mapping paths

你离开我真会死。 提交于 2020-01-04 06:29:36

问题


I'm setup a docker container with SSH and FTP access.

My local project looks like this:

/Users/gezimhome/projects/ziprecipes.net/zip-recipes is my project dir. The source code for my WordPress plugin is in src folder. I have wordpress downloaded and extracted locally here in /Users/gezimhome/projects/ziprecipes.net/workdir/wordpress.

Here are my deployment settings:

My mappings:

My server:

In the docker container, wordpress is downloaded and uncompressed here: /usr/share/nginx/html/wordpress/ and I map /Users/gezimhome/projects/ziprecipes.net/zip-recipes/src to /usr/share/nginx/html/wordpress/wp-content/plugins/zip-recipes when creating the container.

Xdebug is setup properly because I get this Incoming Connection from Xdebug screen:

So, question is, since I already have the mapping why does it keep bothering me to do a mapping for wordpress files?!

And the bigger question is, why are my breakpoints in my plugin not being hit at all?!

Please help :(


回答1:


When setting up a Server the Host needs to match server host name. For my case I set server host to zrdn:

The web server needs to have the server name configured as well. In my case, I configured nginx like so:

server {
        listen   8080;
        server_name zrdn;
        ...

Thanks a million, @LazyOne!



来源:https://stackoverflow.com/questions/35836875/phpstorm-mapping-paths

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!