Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"type": "php",
"request": "launch",
"hostname": "localhost",
"port": 9000,
"port": 9003,
"pathMappings": {
"/app": "${workspaceRoot}/backend"
}
Expand All @@ -19,7 +19,7 @@
"type": "php",
"request": "launch",
"hostname": "localhost",
"port": 9000
"port": 9003
}
]
}
5 changes: 3 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ COPY apache-ports.conf /etc/apache2/ports.conf
RUN docker-php-ext-install pdo pdo_mysql

# XDebug
RUN pecl install xdebug-2.9.6
RUN pecl install xdebug-3.0.2
RUN docker-php-ext-enable xdebug
RUN touch /var/log/xdebug.log && chmod a+rw /var/log/xdebug.log
ENV XDEBUG_CONFIG="remote_enable=1 remote_autostart=1 remote_connect_back=1 remote_host=docker-host remote_port=9000 remote_log=/var/log/xdebug.log"
ENV XDEBUG_MODE="develop,debug,coverage"
ENV XDEBUG_CONFIG="client_host=docker-host log=/var/log/xdebug.log"

# Install composer for PHP dependencies
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
Expand Down
3 changes: 3 additions & 0 deletions backend/public/xdebug.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kommt die Datei wieder weg bevor du mergst?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eigentlich nein. Kann hilfreich sein.
Für Prod sollten wir sie dann löschen... dann aber auch info.php.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gut, ich habe #976 im Release Projekt erstellt.


xdebug_info();