问题
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