Skip to content

Commit 905eb04

Browse files
committed
Initial steps towards XDebug working for vscode server, still not functional
1 parent 55b6ebf commit 905eb04

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

docker/php/7.4/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ RUN pecl install xdebug-3.1.5 \
105105
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini
106106
RUN echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini \
107107
&& echo "xdebug.client_host=host.docker.internal" >> /usr/local/etc/php/conf.d/xdebug.ini \
108+
&& echo "xdebug.client_port=9000" >> /usr/local/etc/php/conf.d/xdebug.ini \
108109
&& echo "xdebug.start_with_request=trigger" >> /usr/local/etc/php/conf.d/xdebug.ini \
109110
&& echo "xdebug.show_error_trace=1" >> /usr/local/etc/php/conf.d/xdebug.ini \
110111
&& echo "xdebug.discover_client_host=1" >> /usr/local/etc/php/conf.d/xdebug.ini \

docker/php/8.1/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ RUN pecl install xdebug-3.2.1 \
105105
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini
106106
RUN echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini \
107107
&& echo "xdebug.client_host=host.docker.internal" >> /usr/local/etc/php/conf.d/xdebug.ini \
108+
&& echo "xdebug.client_port=9000" >> /usr/local/etc/php/conf.d/xdebug.ini \
108109
&& echo "xdebug.start_with_request=trigger" >> /usr/local/etc/php/conf.d/xdebug.ini \
109110
&& echo "xdebug.show_error_trace=1" >> /usr/local/etc/php/conf.d/xdebug.ini \
110111
&& echo "xdebug.discover_client_host=1" >> /usr/local/etc/php/conf.d/xdebug.ini \

docker/php/8.2/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ RUN pecl install xdebug-3.2.1 \
115115
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini
116116
RUN echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini \
117117
&& echo "xdebug.client_host=host.docker.internal" >> /usr/local/etc/php/conf.d/xdebug.ini \
118+
&& echo "xdebug.client_port=9000" >> /usr/local/etc/php/conf.d/xdebug.ini \
118119
&& echo "xdebug.start_with_request=trigger" >> /usr/local/etc/php/conf.d/xdebug.ini \
119120
&& echo "xdebug.show_error_trace=1" >> /usr/local/etc/php/conf.d/xdebug.ini \
120121
&& echo "xdebug.discover_client_host=1" >> /usr/local/etc/php/conf.d/xdebug.ini \

docker/services.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ services:
236236
context: ./vscode-server
237237
ports:
238238
- "8443:8443"
239+
- "9000:9000"
239240
environment:
240241
- RUNNING_PROJECT=${RUNNING_PROJECT}
241242
- VSCODE_SECURE=${VSCODE_SECURE}

docker/vscode-server/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if [ -z "$RUNNING_PROJECT" ]; then
55
exit 1;
66
fi
77

8-
EXTENSIONS=redhat.vscode-yaml,vscode-icons-team.vscode-icons,esbenp.prettier-vscode,bmewburn.vscode-intelephense-client,mikestead.dotenv,ikappas.phpcs,neilbrayfield.php-docblocker
8+
EXTENSIONS=redhat.vscode-yaml,vscode-icons-team.vscode-icons,esbenp.prettier-vscode,bmewburn.vscode-intelephense-client,xdebug.php-debug,mikestead.dotenv,ikappas.phpcs,neilbrayfield.php-docblocker
99

1010
echo "Installing Extensions"
1111
for extension in $(echo ${EXTENSIONS} | tr "," "\n")

0 commit comments

Comments
 (0)