diff --git a/barretenberg/barretenberg.code-workspace b/barretenberg/barretenberg.code-workspace index dc0a3c21f0e..c0737c91760 100644 --- a/barretenberg/barretenberg.code-workspace +++ b/barretenberg/barretenberg.code-workspace @@ -149,6 +149,7 @@ "cmake.configureArgs": [ "--preset clang15", "-G Ninja", + "-g" ], "cmake.useCMakePresets": "auto", }, diff --git a/barretenberg/cpp/CMakePresets.json b/barretenberg/cpp/CMakePresets.json index 72144e31fc9..91bee328c8c 100644 --- a/barretenberg/cpp/CMakePresets.json +++ b/barretenberg/cpp/CMakePresets.json @@ -40,6 +40,15 @@ "CXX": "clang++-15" } }, + { + "name": "clang15-dbg", + "displayName": "Debugging build with Clang-15", + "description": "Build with globally installed Clang-15 in debug mode", + "inherits": "clang15", + "environment": { + "CMAKE_BUILD_TYPE": "Debug" + } + }, { "name": "gcc", "displayName": "Build with GCC", @@ -130,6 +139,11 @@ "inherits": "default", "configurePreset": "clang15" }, + { + "name": "clang15-dbg", + "inherits": "default", + "configurePreset": "clang15-dbg" + }, { "name": "gcc", "inherits": "default", @@ -181,6 +195,11 @@ "inherits": "default", "configurePreset": "clang15" }, + { + "name": "clang15-dbg", + "inherits": "default", + "configurePreset": "clang15-dbg" + }, { "name": "gcc", "inherits": "default",