This commit is contained in:
timerix 2022-09-09 20:30:38 +06:00
parent a33077ec78
commit b3d460a42a
4 changed files with 110 additions and 1 deletions

1
.gitignore vendored
View File

@ -5,7 +5,6 @@ obj/
# user files
.old*/
.vs/
.vscode/
.vshistory/
.editorconfig
*.user

1
.vscode/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
settings.json

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

@ -0,0 +1,52 @@
{
// 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) Debug",
"type": "cppdbg",
"request": "launch",
"preLaunchTask": "build_cb2c_dbg",
"program": "bin/cb2c.com",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"internalConsoleOptions": "openOnSessionStart",
"pipeTransport": {
"debuggerPath": "gdb",
"pipeProgram": "bash",
"pipeArgs": ["-c"],
"pipeCwd": ""
},
"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
}
]
},
{
"name": "(Windows) Debug",
"type": "cppvsdbg",
"request": "launch",
"preLaunchTask": "build_cb2c_dbg",
"cwd": "${workspaceRoot}\\bin",
"program": "${workspaceRoot}\\bin\\cb2c.com",
"args": [],
"environment": [],
"stopAtEntry": false,
"console": "integratedTerminal"
}
]
}

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

@ -0,0 +1,57 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"detail": "build project",
"type": "cppbuild",
"command": "make",
"args": [
"build"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": ["$gcc"],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "shared",
"showReuseMessage": false,
"clear": true
}
},
{
"label": "build_dbg",
"detail": "build project with debug symbols",
"type": "cppbuild",
"command": "make",
"args": [
"build_dbg"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": ["$gcc"],
"group": {
"kind": "build"
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "shared",
"showReuseMessage": false,
"clear": true
}
}
]
}