Add ability to debug with vscode and docker

This commit is contained in:
Joshua Marner 2020-07-14 15:45:05 -05:00
parent 2a8aa69bbe
commit a8fadad03e
3 changed files with 49 additions and 0 deletions

29
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,29 @@
{
// 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": "Launch Chrome",
"request": "launch",
"type": "pwa-chrome",
"url": "http://localhost:8081",
"webRoot": "${workspaceFolder}/src"
},
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"log": true,
"externalConsole": false,
"pathMappings": {
"/var/www/html/api": "${workspaceRoot}/src/api",
},
"ignore": [
"**/vendor/**/*.php"
]
}
]
}

9
docker-compose.yml Normal file
View File

@ -0,0 +1,9 @@
version: "3"
services:
taskboard:
image: "taskboard"
build:
context: .
ports:
- "8081:80"

11
xdebug.ini Normal file
View File

@ -0,0 +1,11 @@
[xdebug]
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20180731/xdebug.so
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_connect_back=0
xdebug.remote_host=host.docker.internal
xdebug.idekey=VSCODE
xdebug.remote_autostart=1
xdebug.remote_log=/usr/local/etc/php/xdebug.log