Skip to content

Commit d00c260

Browse files
committed
update devcontainer & add vscode launch options
fixes the xdebug "warning"
1 parent c80efd3 commit d00c260

3 files changed

Lines changed: 46 additions & 3 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 0 additions & 2 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
22
"name": "PHP",
3-
"build": {"dockerfile":"Dockerfile"},
3+
"image": "mcr.microsoft.com/devcontainers/php:1-8",
4+
"features": {
5+
"ghcr.io/devcontainers/features/php:1": {},
6+
"ghcr.io/devcontainers/features/node:1": {}
7+
}
48
}

.vscode/launch.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Run Tests",
9+
"type": "php",
10+
"request": "launch",
11+
"program": "${workspaceFolder}/tests/Test.php",
12+
"cwd": "${workspaceFolder}",
13+
"externalConsole": false,
14+
"port": 9003
15+
},
16+
{
17+
"name": "Generate Test Strings",
18+
"type": "php",
19+
"request": "launch",
20+
"program": "${workspaceFolder}/tests/GenerateTestStrings.php",
21+
"cwd": "${workspaceFolder}",
22+
"externalConsole": false,
23+
"port": 9003
24+
},
25+
{
26+
"name": "Debug current script in console",
27+
"type": "php",
28+
"request": "launch",
29+
"program": "${file}",
30+
"cwd": "${fileDirname}",
31+
"externalConsole": false,
32+
"port": 9003
33+
},
34+
{
35+
"name": "Listen for Xdebug",
36+
"type": "php",
37+
"request": "launch",
38+
"port": 9003
39+
}
40+
]
41+
}

0 commit comments

Comments
 (0)