Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN set -eux; \
rm -rf /var/lib/apt/lists/*

# install Node.js
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - ; \
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - ; \
apt-get install -y nodejs; \
rm -rf /var/lib/apt/lists/*;

Expand All @@ -37,12 +37,12 @@ RUN set -ex; \
zip \
; \
pecl install imagick-3.4.4; \
pecl install xdebug-2.8.1; \
pecl install xdebug; \
docker-php-ext-enable imagick xdebug;\
rm -rf /var/lib/apt/lists/*

#XDebug settings
RUN echo "[XDebug]\nxdebug.remote_enable = 1\nxdebug.remote_autostart = 1" > $PHP_INI_DIR/conf.d/xdebug.ini
RUN echo "[XDebug]\nxdebug.mode=debug\nxdebug.client_host=host.docker.internal\nxdebug.log=/var/log/php/xdebug.log" > $PHP_INI_DIR/conf.d/xdebug.ini

#WP recommended PHP settings
RUN { \
Expand Down
23 changes: 23 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug (Theme)",
"type": "php",
"request": "launch",
"port": 9003,
"pathMappings": {
"/var/www/html/wp-content/themes/theme-dev": "${workspaceRoot}"
}
},
{
"name": "Listen for Xdebug (Plugin)",
"type": "php",
"request": "launch",
"port": 9003,
"pathMappings": {
"/var/www/html/wp-content/plugins/plugin-dev": "${workspaceRoot}"
}
}
]
}
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ Anything placed in the `plugins` folder (single files or folders) will be copied

## TODO

- provide a preconfigured launch.json for PHP debugging
- theme auto-install