add .vscode debug guideline

This commit is contained in:
pigeatgarlic 2025-02-16 09:29:25 +00:00
parent 4d92d0df85
commit c111b55166
4 changed files with 145 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,7 +1,6 @@
build*/
cmake-build*
.DS_Store
.vscode
.vs
*.swp
*.kdev4

22
.vscode/c_cpp_properties.json vendored Normal file
View File

@ -0,0 +1,22 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"C:/Users/XPS 9500/scoop/apps/msys2/current/mingw64/include/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.22000.0",
"compilerPath": "C:/Users/XPS 9500/scoop/apps/msys2/2024-01-13/mingw64/bin/gcc.exe",
"cStandard": "c17",
"cppStandard": "c++20",
"intelliSenseMode": "${default}"
}
],
"version": 4
}

34
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,34 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "C:/ideacrawler/thinkmay3/assets/shmsunshine.exe",
"args": [],
"stopAtEntry": false,
"cwd": "C:/ideacrawler/thinkmay3/assets",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "C:/Users/XPS 9500/scoop/apps/msys2/current/mingw64/bin/gdb.exe",
"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
}
]
}
]
}

89
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,89 @@
{
"files.associations": {
"*.csv": "excel",
"*.ipp": "cpp",
"any": "cpp",
"array": "cpp",
"atomic": "cpp",
"bit": "cpp",
"*.tcc": "cpp",
"bitset": "cpp",
"cctype": "cpp",
"charconv": "cpp",
"chrono": "cpp",
"codecvt": "cpp",
"compare": "cpp",
"concepts": "cpp",
"condition_variable": "cpp",
"coroutine": "cpp",
"csignal": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstring": "cpp",
"cwchar": "cpp",
"string": "cpp",
"unordered_map": "cpp",
"vector": "cpp",
"exception": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"optional": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"format": "cpp",
"fstream": "cpp",
"initializer_list": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"map": "cpp",
"mutex": "cpp",
"new": "cpp",
"ostream": "cpp",
"span": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"string_view": "cpp",
"text_encoding": "cpp",
"thread": "cpp",
"tuple": "cpp",
"typeinfo": "cpp",
"variant": "cpp",
"strstream": "cpp",
"cfenv": "cpp",
"cinttypes": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"complex": "cpp",
"csetjmp": "cpp",
"cstdarg": "cpp",
"cstdlib": "cpp",
"ctime": "cpp",
"cwctype": "cpp",
"deque": "cpp",
"forward_list": "cpp",
"list": "cpp",
"set": "cpp",
"numeric": "cpp",
"random": "cpp",
"ratio": "cpp",
"source_location": "cpp",
"system_error": "cpp",
"future": "cpp",
"iomanip": "cpp",
"numbers": "cpp",
"ranges": "cpp",
"semaphore": "cpp",
"shared_mutex": "cpp",
"stdfloat": "cpp",
"stop_token": "cpp",
"typeindex": "cpp",
"valarray": "cpp"
}
}