为了方便在vscode上快速debug,顺便把vscode的配置也上传了

This commit is contained in:
建峰 2024-06-22 17:43:15 +08:00
parent fd2e8b5619
commit b2c20b9dca
4 changed files with 61 additions and 3 deletions

6
.gitignore vendored
View File

@ -3,6 +3,9 @@
build/ build/
release/ release/
# .vscode
# .vscode/
# SI4 # SI4
SIP.si4project/ SIP.si4project/
@ -17,9 +20,6 @@ x86/
x64/ x64/
ARM/ ARM/
# .vscode
.vscode/
# MDK-ARM # MDK-ARM
DebugConfig/ DebugConfig/
Listings/ Listings/

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

@ -0,0 +1,34 @@
{
// 使 IntelliSense
//
// 访: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "unicstl",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/release/bin/test.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"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
}
],
"preLaunchTask": "build",
"miDebuggerPath": "D:/Qt/Tools/mingw1120_64/bin/gdb.exe"
}
]
}

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

@ -0,0 +1,10 @@
{
"cmake.configureOnOpen": true,
"files.encoding": "gb18030",
"files.associations": {
"common.h": "c",
"unicstl.h": "c",
"test.h": "c",
"queue.h": "c"
}
}

14
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,14 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "build",
"command": "${workspaceFolder}/mk.bat",
"group": {
"kind": "build",
"isDefault": true
}
},
]
}