From ad3603452b28cc1e9eb5cdece56f388c6a55f260 Mon Sep 17 00:00:00 2001 From: Ofer Shaal Date: Sat, 30 Oct 2021 10:30:31 -0400 Subject: [PATCH] Add PHP Debug + Shell Debug to VSCode (#3350) [skip ci] * Add PHP Debug + Shell Debug to VSCode * Adding PHP + Bash VSCode extensions --- .gitpod.yml | 8 ++++++++ .vscode/launch.json | 18 ++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/.gitpod.yml b/.gitpod.yml index 698e9c162dd..4fe316c634d 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -40,8 +40,16 @@ tasks: vscode: extensions: + # Go extension - golang.go + # PHP extension + - felixfbecker.php-debug + + # Bash extensions + - timonwong.shellcheck + - rogalmic.bash-debug + github: prebuilds: # enable for the master/default branch (defaults to true) diff --git a/.vscode/launch.json b/.vscode/launch.json index b1dd9d3eb53..1a1bc40d334 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -25,6 +25,24 @@ "env": {"DDEV_DEBUG": true}, "args": [], "showLog": true + }, + { + "type": "bashdb", + "request": "launch", + "name": "Bash-Debug (select script from list of sh files)", + "cwd": "${workspaceFolder}", + "program": "${command:SelectScriptName}", + "args": [] + }, + { + "name": "Listen for XDebug", + "type": "php", + "request": "launch", + "hostname": "0.0.0.0", + "port": 9000, + "pathMappings": { + "/var/www/html": "${workspaceRoot}" + } } ] }