Skip to content

Commit

Permalink
Improve debugging experience of CMake (#3646)
Browse files Browse the repository at this point in the history
  • Loading branch information
Linvail authored Nov 6, 2024
1 parent 243dc82 commit f70bc48
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"intelliSenseMode": "windows-gcc-x86"
"intelliSenseMode": "windows-clang-x86"
}
}
},
Expand Down
70 changes: 70 additions & 0 deletions launch.vs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"version": "0.2.1",
"defaults": {},
"configurations": [
{
"type": "cppdbg",
"project": "CMakeLists.txt",
"projectTarget": "keeperfx.exe",
"name": "keeperfx.exe (gdb)",
"currentDir": "E:\\Games\\keeperfx_1_2_0_complete",
"cwd": "E:\\Games\\keeperfx_1_2_0_complete",
"args": [
"-level",
"00001",
"-campaign",
"personal",
"-nointro",
"-alex"
],
"program": "${debugInfo.target}",
"MIMode": "gdb",
"miDebuggerPath": "C:\\msys64\\mingw32\\bin\\gdb.exe",
"externalConsole": true,
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
},
{
"type": "cppdbg",
"project": "CMakeLists.txt",
"projectTarget": "keeperfx_hvlog.exe",
"name": "keeperfx_hvlog.exe (gdb)",
"currentDir": "E:\\Games\\keeperfx_1_2_0_complete",
"cwd": "E:\\Games\\keeperfx_1_2_0_complete",
"args": [
"-level",
"00001",
"-campaign",
"personal",
"-nointro",
"-alex"
],
"program": "${debugInfo.target}",
"MIMode": "gdb",
"miDebuggerPath": "C:\\msys64\\mingw32\\bin\\gdb.exe",
"externalConsole": true,
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
}
]
}

0 comments on commit f70bc48

Please sign in to comment.