This image is based on the official WordPress image and extends it with Xdebug for remote debugging purposes.
The image provides the mount point /var/xdebug in addition to the mount points of the base image.
Furthermore the image provides environment variables to configure the settings of Xdebug as described in the following table.
| Environment variable | Xdebug setting | Default value |
|---|---|---|
| XDEBUG_CLIENT_DICOVERY_HEADER | xdebug.client_discovery_header | |
| XDEBUG_CLIENT_HOST | xdebug.client_host | host.docker.internal |
| XDEBUG_CLIENT_PORT | xdebug.client_port | 9003 |
| XDEBUG_COLLECT_ASSIGNMENTS | xdebug.collect_assignments | false |
| XDEBUG_COLLECT_RETURN | xdebug.collect_return | false |
| XDEBUG_CONNECTION_TIMEOUT | xdebug.connect_timeout_ms | 200 |
| XDEBUG_DISCOVER_CLIENT_HOST | xdebug.discover_client_host | false |
| XDEBUG_DUMP_COOKIE | xdebug.dump.COOKIE | Empty |
| XDEBUG_DUMP_FILES | xdebug.dump.FILES | Empty |
| XDEBUG_DUMP_GET | xdebug.dump.GET | Empty |
| XDEBUG_DUMP_POST | xdebug.dump.POST | Empty |
| XDEBUG_DUMP_REQUEST | xdebug.dump.REQUEST | Empty |
| XDEBUG_DUMP_SERVER | xdebug.dump.SERVER | Empty |
| XDEBUG_DUMP_SESSION | xdebug.dump.SESSION | Empty |
| XDEBUG_DUMP_GLOBALS | xdebug.dump_globals | true |
| XDEBUG_DUMP_ONCE | xdebug.dump_once | true |
| XDEBUG_DUMP_UNDEFINED | xdebug.dump_undefined | false |
| XDEBUG_FILE_LINK_FORMAT | xdebug.file_link_format | |
| XDEBUG_FILENAME_FORMAT | xdebug.filename_format | ...%s%n |
| XDEBUG_FORCE_DISPLAY_ERRORS | xdebug.force_display_errors | 0 |
| XDEBUG_FORCE_ERROR_REPORTNG | xdebug.force_error_reporting | 0 |
| XDEBUG_GC_STATS_OUPUT_NAME | xdebug.gc_stats_output_name | gcstats.%p |
| XDEBUG_HALT_LEVEL | xdebug.halt_level | 0 |
| XDEBUG_IDEKEY | xdebug.idekey | wordpress-xdebug |
| XDEBUG_LOG_LEVEL | xdebug.log_level | 7 |
| XDEBUG_MAX_NESTING_LEVEL | xdebug.max_nesting_level | 256 |
| XDEBUG_MAX_STACK_FRAMES | xdebug.max_stack_frames | -1 |
| XDEBUG_MODE | xdebug.mode | develop |
| XDEBUG_PROFILER_APPEND | xdebug.profiler_append | 0 |
| XDEBUG_PROFILER_OUTPUT_NAME | xdebug.profiler_output_name | cachegrind.out.%p |
| XDEBUG_SCREAM | xdebug.scream | false |
| XDEBUG_SHOW_ERROR_TRACE | xdebug.show_error_trace | 0 |
| XDEBUG_SHOW_EXCEPTION_TRACE | xdebug.show_exception_trace | 0 |
| XDEBUG_SHOW_LOCAL_VARS | xdebug.show_local_vars | 0 |
| XDEBUG_START_UPON_ERROR | xdebug.start_upon_error | default |
| XDEBUG_START_WITH_REQUEST | xdebug.start_with_request | default |
| XDEBUG_TRACE_FORMAT | xdebug.trace_format | 0 |
| XDEBUG_TRACE_OPTIONS | xdebug.trace_options | 0 |
| XDEBUG_TRACE_OUTPUT_NAME | xdebug.trace_output_name | trace.%c |
| XDEBUG_TRIGGER_VALUE | xdebug.trigger_value | |
| XDEBUG_USE_COMPRESSION | xdebug.use_compression | true |
| XDEBUG_VAR_DISPLAY_MAX_CHILDREN | xdebug.var_display_max_children | 128 |
| XDEBUG_VAR_DISPLAY_MAX_DATA | xdebug.var_display_max_data | 512 |
| XDEBUG_VAR_DISPLAY_MAX_DEPTH | xdebug.var_display_max_depth | 3 |
As log file will be the file /var/xdebug/xdebug.log configured.
As the directory where Xdebug will write tracing, profiling, and garbage collection statistics to will be the directory /var/xdebug/output configured.
If you are using this image you can open in your browser the page
phpinfo.phpto retrieve information about PHP's configuration;xdebug_info.phpto retrieve diagnostic information according to Xdebug.
The created images will be published in the Docker Hub Repository ivgg/wordpress-xdebug.
⚠️ This README describes the images newer as5.4.2-php7.4!
Copyright © Gergö Gabor Ilyes-Veisz. Licensed under the GNU General Public License v3.