Skip to content

Commit

Permalink
Add PHP Debug + Shell Debug to VSCode (ddev#3350) [skip ci]
Browse files Browse the repository at this point in the history
* Add PHP Debug + Shell Debug to VSCode
* Adding PHP + Bash VSCode extensions
  • Loading branch information
shaal authored Oct 30, 2021
1 parent 625d708 commit ad36034
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
18 changes: 18 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
}
]
}

0 comments on commit ad36034

Please sign in to comment.