From 549b294a05dde654bd9758b56408705b8cc5f318 Mon Sep 17 00:00:00 2001 From: Tamas Vajk Date: Fri, 13 Sep 2024 09:42:51 +0200 Subject: [PATCH] C#: Add VSCode `launch.json` --- csharp/.gitignore | 1 - csharp/.vscode/launch.json | 65 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 csharp/.vscode/launch.json diff --git a/csharp/.gitignore b/csharp/.gitignore index f3ea7470cb9..362df6f453e 100644 --- a/csharp/.gitignore +++ b/csharp/.gitignore @@ -11,7 +11,6 @@ csharp.log *.tlog .vs *.user -.vscode/launch.json extractor/Semmle.Extraction.CSharp.Driver/Properties/launchSettings.json paket-files/ diff --git a/csharp/.vscode/launch.json b/csharp/.vscode/launch.json new file mode 100644 index 00000000000..46858861047 --- /dev/null +++ b/csharp/.vscode/launch.json @@ -0,0 +1,65 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "C#: Standalone Debug", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "dotnet: build", + "program": "${workspaceFolder}/extractor/Semmle.Extraction.CSharp.Standalone/bin/Debug/net8.0/Semmle.Extraction.CSharp.Standalone.dll", + "args": [], + // Set the path to the folder that should be extracted: + "cwd": "${workspaceFolder}/ql/test/library-tests/standalone/standalonemode", + "env": { + "CODEQL_THREADS": "1", + "CODEQL_EXTRACTOR_CSHARP_OPTION_LOGGING_VERBOSITY": "progress+++", + "CODEQL_EXTRACTOR_CSHARP_OPTION_TRAP_COMPRESSION": "NONE", + }, + "stopAtEntry": true, + "console": "internalConsole", + "justMyCode": false, + "symbolOptions": { + "searchPaths": [], + "searchMicrosoftSymbolServer": true, + "searchNuGetOrgSymbolServer": true + }, + "sourceLinkOptions": { + "*": { + "enabled": true + } + }, + "suppressJITOptimizations": true + }, + { + "name": "C#: Autobuild Debug", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "dotnet: build", + "program": "${workspaceFolder}/autobuilder/Semmle.Autobuild.CSharp/bin/Debug/net8.0/Semmle.Autobuild.CSharp.dll", + // Set the path to the folder that should be extracted: + "cwd": "${workspaceFolder}/ql/integration-tests/all-platforms/autobuild", + "stopAtEntry": true, + "args": [], + "env": { + // The below folders need to exist before debugging + "CODEQL_EXTRACTOR_CSHARP_TRAP_DIR": "${workspaceFolder}/ql/integration-tests/DB", + "CODEQL_EXTRACTOR_CSHARP_SOURCE_ARCHIVE_DIR": "${workspaceFolder}/ql/integration-tests/DB", + "CODEQL_EXTRACTOR_CSHARP_DIAGNOSTIC_DIR": "${workspaceFolder}/ql/integration-tests/DB", + "CODEQL_EXTRACTOR_CSHARP_SCRATCH_DIR": "${workspaceFolder}/ql/integration-tests/DB", + } + }, + { + "name": "C#: Binary Log Debug", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "dotnet: build", + "program": "${workspaceFolder}/extractor/Semmle.Extraction.CSharp.Driver/bin/Debug/net8.0/Semmle.Extraction.CSharp.Driver.dll", + "stopAtEntry": true, + "args": [ + "--binlog", + "${workspaceFolder}/ql/integration-tests/all-platforms/binlog/test.binlog" + ], + "env": {} + }, + ] +}