You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -75,4 +79,44 @@ Uses the official WordPress latest docker image.
75
79
76
80
The **wpcli container** was added to only run one-off commands. Don’t need it to run as a service, only as a cli tool, for that run:
77
81
78
-
`docker-compose run --rm wpcli command`
82
+
For using wp-cli, use `docker-compose run --rm wpcli command` as it was added to only run one-off commands
83
+
84
+
## Debugging in WordPress
85
+
86
+
The wp-core is synchronized through the docker-composer.yml just in case you need to check and/or debug something. After running `docker-compose up -d`, you will be able to change the [WordPress debug mode](https://wordpress.org/documentation/article/debugging-in-wordpress/) by changing the following lines on the wp-config.php file.
87
+
88
+
By default, the wp-config.php generated by Docker will look something like this:
More info about **debugging in WordPress** you can find [here](https://wordpress.org/documentation/article/debugging-in-wordpress/).
107
+
108
+
## Xdebug for VSCode
109
+
110
+
Xdebug is enabled and configured to work on VSCode using the extension PHP Debug.
111
+
112
+
### Remote Host Debugging
113
+
114
+
```
115
+
"pathMappings": {
116
+
"/var/www/html": "${workspaceFolder}",
117
+
}
118
+
```
119
+
120
+
# Contributing and Support
121
+
122
+
It's **work in progress.** Feel free to contribute informing about [issues](https://github.com/sarahcssiqueira/docker-wordpress/issues) or even through [pull requests](https://github.com/sarahcssiqueira/docker-wordpress/pulls) for improvements.
0 commit comments