我设置了具有SSH和FTP访问权限的docker容器。
我的本地项目如下:
/Users/gezimhome/projects/ziprecipes.net/zip-recipes
是我的项目目录。我的WordPress插件的源代码位于src
文件夹中。
我在/Users/gezimhome/projects/ziprecipes.net/workdir/wordpress
中在本地下载并提取了wordpress。
在docker容器中,wordpress会在此处下载并解压缩:
/usr/share/nginx/html/wordpress/
我在创建容器时将/Users/gezimhome/projects/ziprecipes.net/zip-recipes/src
映射到/usr/share/nginx/html/wordpress/wp-content/plugins/zip-recipes
。
Xdebug设置正确,因为我得到了这个Incoming Connection from Xdebug
屏幕:
所以,问题是,因为我已经有了映射,为什么它一直困扰我为wordpress文件做映射?!
更大的问题是,为什么我的插件中的断点根本没有被击中?!
请帮助:(