From 6c230995df546e3b4e27d2b3cd2489365e45f021 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Fri, 14 Jul 2023 10:27:51 -0400 Subject: [PATCH] add c_cpp_properties.json for better VSCode support; update debug types for VSCode launch.json; --- contrib/vscode/c_cpp_properties.json | 9 ++++++++ contrib/vscode/launch.json | 34 ++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 contrib/vscode/c_cpp_properties.json diff --git a/contrib/vscode/c_cpp_properties.json b/contrib/vscode/c_cpp_properties.json new file mode 100644 index 00000000..39e93442 --- /dev/null +++ b/contrib/vscode/c_cpp_properties.json @@ -0,0 +1,9 @@ +{ + "configurations": [ + { + "compileCommands": "${workspaceFolder}/build/compile_commands.json", + "configurationProvider": "ms-vscode.cmake-tools" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/contrib/vscode/launch.json b/contrib/vscode/launch.json index f474745d..6fbd1cb0 100644 --- a/contrib/vscode/launch.json +++ b/contrib/vscode/launch.json @@ -21,5 +21,39 @@ "trace": true } }, + { + // Use IntelliSense to find out which attributes exist for C# debugging + // Use hover for the description of the existing attributes + // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md + "name": "Debug FNE", + "type": "cppdbg", + "request": "launch", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/build/dvmhost", + "args": ["-c", "./fne-config.yml", "--fne", "-f"], + "cwd": "${workspaceFolder}/build", + "stopAtEntry": false, + "logging": { + "moduleLoad": true, + "trace": true + } + }, + { + // Use IntelliSense to find out which attributes exist for C# debugging + // Use hover for the description of the existing attributes + // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md + "name": "Debug Monitor", + "type": "cppdbg", + "request": "launch", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/build/dvmmon", + "args": ["-c", "./monitor-config.yml"], + "cwd": "${workspaceFolder}/build", + "stopAtEntry": false, + "logging": { + "moduleLoad": true, + "trace": true + } + }, ] }