Skip to content

Commit 3204904

Browse files
authored
Added Magento Xdebug launch config
1 parent d96cf15 commit 3204904

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.vscode/launch.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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": "Launch Magento with Xdebug",
9+
"type": "php",
10+
"request": "launch",
11+
"runtimeArgs": [
12+
"-dxdebug.mode=debug",
13+
"-dxdebug.start_with_request=yes",
14+
"-S",
15+
"localhost:0"
16+
],
17+
"program": "",
18+
"cwd": "${workspaceRoot}/pub/",
19+
"port": 9003,
20+
"serverReadyAction": {
21+
"pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
22+
"uriFormat": "http://localhost:%s",
23+
"action": "openExternally"
24+
}
25+
},
26+
{
27+
"name": "Launch currently open PHP script",
28+
"type": "php",
29+
"request": "launch",
30+
"program": "${file}",
31+
"cwd": "${fileDirname}",
32+
"port": 0,
33+
"runtimeArgs": [
34+
"-dxdebug.start_with_request=yes"
35+
],
36+
"env": {
37+
"XDEBUG_MODE": "debug,develop",
38+
"XDEBUG_CONFIG": "client_port=${port}"
39+
}
40+
}
41+
]
42+
}

0 commit comments

Comments
 (0)