Add ability to debug with vscode and docker
This commit is contained in:
parent
2a8aa69bbe
commit
a8fadad03e
29
.vscode/launch.json
vendored
Normal file
29
.vscode/launch.json
vendored
Normal 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
9
docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
version: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
taskboard:
|
||||||
|
image: "taskboard"
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
ports:
|
||||||
|
- "8081:80"
|
11
xdebug.ini
Normal file
11
xdebug.ini
Normal 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
|
Reference in New Issue
Block a user