Skip to content

Commit d72f8b2

Browse files
authored
Merge pull request #17455 from tamasvajk/add-launch-json
C#: Add VSCode `launch.json`
2 parents 0309770 + 549b294 commit d72f8b2

File tree

2 files changed

+65
-1
lines changed

2 files changed

+65
-1
lines changed

csharp/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ csharp.log
1111
*.tlog
1212
.vs
1313
*.user
14-
.vscode/launch.json
1514

1615
extractor/Semmle.Extraction.CSharp.Driver/Properties/launchSettings.json
1716
paket-files/

csharp/.vscode/launch.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "C#: Standalone Debug",
6+
"type": "coreclr",
7+
"request": "launch",
8+
"preLaunchTask": "dotnet: build",
9+
"program": "${workspaceFolder}/extractor/Semmle.Extraction.CSharp.Standalone/bin/Debug/net8.0/Semmle.Extraction.CSharp.Standalone.dll",
10+
"args": [],
11+
// Set the path to the folder that should be extracted:
12+
"cwd": "${workspaceFolder}/ql/test/library-tests/standalone/standalonemode",
13+
"env": {
14+
"CODEQL_THREADS": "1",
15+
"CODEQL_EXTRACTOR_CSHARP_OPTION_LOGGING_VERBOSITY": "progress+++",
16+
"CODEQL_EXTRACTOR_CSHARP_OPTION_TRAP_COMPRESSION": "NONE",
17+
},
18+
"stopAtEntry": true,
19+
"console": "internalConsole",
20+
"justMyCode": false,
21+
"symbolOptions": {
22+
"searchPaths": [],
23+
"searchMicrosoftSymbolServer": true,
24+
"searchNuGetOrgSymbolServer": true
25+
},
26+
"sourceLinkOptions": {
27+
"*": {
28+
"enabled": true
29+
}
30+
},
31+
"suppressJITOptimizations": true
32+
},
33+
{
34+
"name": "C#: Autobuild Debug",
35+
"type": "coreclr",
36+
"request": "launch",
37+
"preLaunchTask": "dotnet: build",
38+
"program": "${workspaceFolder}/autobuilder/Semmle.Autobuild.CSharp/bin/Debug/net8.0/Semmle.Autobuild.CSharp.dll",
39+
// Set the path to the folder that should be extracted:
40+
"cwd": "${workspaceFolder}/ql/integration-tests/all-platforms/autobuild",
41+
"stopAtEntry": true,
42+
"args": [],
43+
"env": {
44+
// The below folders need to exist before debugging
45+
"CODEQL_EXTRACTOR_CSHARP_TRAP_DIR": "${workspaceFolder}/ql/integration-tests/DB",
46+
"CODEQL_EXTRACTOR_CSHARP_SOURCE_ARCHIVE_DIR": "${workspaceFolder}/ql/integration-tests/DB",
47+
"CODEQL_EXTRACTOR_CSHARP_DIAGNOSTIC_DIR": "${workspaceFolder}/ql/integration-tests/DB",
48+
"CODEQL_EXTRACTOR_CSHARP_SCRATCH_DIR": "${workspaceFolder}/ql/integration-tests/DB",
49+
}
50+
},
51+
{
52+
"name": "C#: Binary Log Debug",
53+
"type": "coreclr",
54+
"request": "launch",
55+
"preLaunchTask": "dotnet: build",
56+
"program": "${workspaceFolder}/extractor/Semmle.Extraction.CSharp.Driver/bin/Debug/net8.0/Semmle.Extraction.CSharp.Driver.dll",
57+
"stopAtEntry": true,
58+
"args": [
59+
"--binlog",
60+
"${workspaceFolder}/ql/integration-tests/all-platforms/binlog/test.binlog"
61+
],
62+
"env": {}
63+
},
64+
]
65+
}

0 commit comments

Comments
 (0)