Skip to content

Commit fb1a9ae

Browse files
committed
Improve VS Code local package debugging
1 parent a12287e commit fb1a9ae

6 files changed

Lines changed: 376 additions & 45 deletions

File tree

.vscode/launch.json

Lines changed: 45 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,31 @@
1414
"symbolOptions": {
1515
"searchPaths": [
1616
"${workspaceFolder}\\Output\\Debug"
17-
]
17+
],
18+
"searchNuGetOrgSymbolServer": true
19+
}
20+
},
21+
{
22+
"name": "FieldWorks (.NET Framework, Package, Diagnostics)",
23+
"type": "clr",
24+
"request": "launch",
25+
"preLaunchTask": "Prepare Debug (Package)",
26+
"program": "${workspaceFolder}\\Output\\Debug\\FieldWorks.exe",
27+
"cwd": "${workspaceFolder}\\Output\\Debug",
28+
"console": "externalTerminal",
29+
"justMyCode": false,
30+
"requireExactSource": false,
31+
"suppressJITOptimizations": true,
32+
"logging": {
33+
"moduleLoad": true,
34+
"exceptions": true,
35+
"programOutput": true
36+
},
37+
"symbolOptions": {
38+
"searchPaths": [
39+
"${workspaceFolder}\\Output\\Debug"
40+
],
41+
"searchNuGetOrgSymbolServer": true
1842
}
1943
},
2044
{
@@ -30,35 +54,31 @@
3054
"symbolOptions": {
3155
"searchPaths": [
3256
"${workspaceFolder}\\Output\\Debug"
33-
]
57+
],
58+
"searchNuGetOrgSymbolServer": true
3459
}
3560
},
3661
{
37-
"name": "Debug NUnit Tests",
62+
"name": "FieldWorks (.NET Framework, Local Packages, Diagnostics)",
3863
"type": "clr",
3964
"request": "launch",
40-
"preLaunchTask": "Build",
41-
"program": "dotnet",
42-
"args": [
43-
"test",
44-
"${workspaceFolder}/${input:testProject}",
45-
"--no-build",
46-
"--settings",
47-
"${workspaceFolder}/Test.runsettings",
48-
"-c",
49-
"Debug"
50-
],
51-
"cwd": "${workspaceFolder}",
52-
"console": "integratedTerminal",
53-
"justMyCode": false
54-
}
55-
],
56-
"inputs": [
57-
{
58-
"id": "testProject",
59-
"type": "promptString",
60-
"description": "Path to test project (e.g., Src/CacheLight/CacheLightTests/CacheLightTests.csproj)",
61-
"default": "Src/CacheLight/CacheLightTests/CacheLightTests.csproj"
65+
"preLaunchTask": "Prepare Debug (Local Packages)",
66+
"program": "${workspaceFolder}\\Output\\Debug\\FieldWorks.exe",
67+
"cwd": "${workspaceFolder}\\Output\\Debug",
68+
"console": "externalTerminal",
69+
"justMyCode": false,
70+
"requireExactSource": false,
71+
"logging": {
72+
"moduleLoad": true,
73+
"exceptions": true,
74+
"programOutput": true
75+
},
76+
"symbolOptions": {
77+
"searchPaths": [
78+
"${workspaceFolder}\\Output\\Debug"
79+
],
80+
"searchNuGetOrgSymbolServer": true
81+
}
6282
}
6383
]
6484
}

.vscode/tasks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,9 @@
298298
{
299299
"label": "Prepare Debug (Local Packages)",
300300
"type": "shell",
301-
"command": "./build.ps1 -LocalPalaso -LocalLcm -LocalChorus -ManagedDebugType portable",
301+
"command": "./Build/Agent/Invoke-VsCodeDebugBuild.ps1 -LocalPalaso -LocalLcm -LocalChorus -ManagedDebugType portable",
302302
"group": "build",
303-
"detail": "Pack the local dependency repos and build FieldWorks for VS Code debugging",
303+
"detail": "Build for VS Code debugging only when relevant files or local dependency repo states changed since the last successful local-package portable-PDB debug build",
304304
"options": {
305305
"shell": {
306306
"executable": "powershell.exe",

0 commit comments

Comments
 (0)