Skip to content

Commit 2fdae77

Browse files
committed
feat(.vscode): add support for vscode debugger
1 parent 1f8d0f4 commit 2fdae77

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

.vscode/launch.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": ".NET Core Launch (web)",
6+
"type": "coreclr",
7+
"request": "launch",
8+
"preLaunchTask": "build",
9+
"program": "${workspaceRoot}/src/JsonApiDotNetCoreExample/bin/Debug/netcoreapp1.0/JsonApiDotNetCoreExample.dll",
10+
"args": [],
11+
"cwd": "${workspaceRoot}/src/JsonApiDotNetCoreExample",
12+
"stopAtEntry": false,
13+
"launchBrowser": {
14+
"enabled": false,
15+
"args": "${auto-detect-url}",
16+
"windows": {
17+
"command": "cmd.exe",
18+
"args": "/C start ${auto-detect-url}"
19+
},
20+
"osx": {
21+
"command": "open"
22+
},
23+
"linux": {
24+
"command": "xdg-open"
25+
}
26+
},
27+
"env": {
28+
"ASPNETCORE_ENVIRONMENT": "Development"
29+
},
30+
"sourceFileMap": {
31+
"/Views": "${workspaceRoot}/Views"
32+
}
33+
},
34+
{
35+
"name": ".NET Core Attach",
36+
"type": "coreclr",
37+
"request": "attach",
38+
"processId": "${command.pickProcess}"
39+
}
40+
]
41+
}

.vscode/tasks.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "0.1.0",
5+
"command": "dotnet",
6+
"isShellCommand": true,
7+
"args": [],
8+
"options": {
9+
"cwd": "${workspaceRoot}/src/JsonApiDotNetCoreExample"
10+
},
11+
"tasks": [
12+
{
13+
"taskName": "build",
14+
"args": [ ],
15+
"isBuildCommand": true,
16+
"showOutput": "silent",
17+
"problemMatcher": "$msCompile"
18+
}
19+
]
20+
}

0 commit comments

Comments
 (0)