diff options
Diffstat (limited to '.devcontainer')
-rw-r--r-- | .devcontainer/launch.json | 14 | ||||
-rwxr-xr-x | .devcontainer/setup.sh | 3 |
2 files changed, 17 insertions, 0 deletions
diff --git a/.devcontainer/launch.json b/.devcontainer/launch.json new file mode 100644 index 00000000000..8103dd29461 --- /dev/null +++ b/.devcontainer/launch.json @@ -0,0 +1,14 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Listen for Xdebug", + "type": "php", + "request": "launch", + "port": 9003 + } + ] +} diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh index aac1f82f083..3485d4f7257 100755 --- a/.devcontainer/setup.sh +++ b/.devcontainer/setup.sh @@ -12,6 +12,9 @@ git submodule update --init # Codespace config cp .devcontainer/codespace.config.php config/codespace.config.php +# VSCode debugger profile +mkdir -p .vscode && cp .devcontainer/launch.json .vscode/launch.json + # Onetime installation setup if [[ ! $(sudo -u ${APACHE_RUN_USER} php occ status) =~ installed:[[:space:]]*true ]]; then echo "Running NC installation" |