PhpStorm mapping paths

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

My local project looks like this:

Read More

/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:
enter image description here

My mappings:
enter image description here

My server:
enter image description here

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:
enter image description here

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 🙁

Related posts

1 comment

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

    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!

Comments are closed.