Skip to content

Commit d305a57

Browse files
committed
add vscode luncher to devnet templates
1 parent 42c20b1 commit d305a57

File tree

4 files changed

+51
-6
lines changed

4 files changed

+51
-6
lines changed

templates/console/.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
.idea/
2-
.vscode/
3-
/vendor/
1+
vendor/
42
composer.lock
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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 DevNet Application",
9+
"type": "php",
10+
"request": "launch",
11+
"cwd": "${workspaceRoot}/bin/",
12+
"runtimeArgs": [
13+
"-dxdebug.start_with_request=yes",
14+
"apphost"
15+
],
16+
"env": {
17+
"XDEBUG_MODE": "debug,develop"
18+
}
19+
}
20+
]
21+
}

templates/web/.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
.idea/
2-
.vscode/
3-
/vendor/
1+
vendor/
42
composer.lock

templates/web/.vscode/launch.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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 Built-in web server",
9+
"type": "php",
10+
"request": "launch",
11+
"cwd": "${workspaceRoot}/webroot",
12+
"runtimeArgs": [
13+
"-dxdebug.mode=debug",
14+
"-dxdebug.start_with_request=yes",
15+
"-S",
16+
"localhost:8000"
17+
],
18+
"serverReadyAction": {
19+
"pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
20+
"uriFormat": "http://localhost:%s",
21+
"action": "openExternally"
22+
},
23+
"env": {
24+
"DEVNET_ENVIRONMENT": "development"
25+
}
26+
}
27+
]
28+
}

0 commit comments

Comments
 (0)