feat: ultimate dev container

This commit is contained in:
2025-03-22 15:18:26 +01:00
parent 81c509081f
commit 1f63f81979
6 changed files with 206 additions and 0 deletions

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

@@ -0,0 +1,51 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "GDB Debug (Debug Build)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/bin/x64/Debug/MonitorRam",
"args": [
""
], // Arguments to pass to your program
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb", // Path to gdb inside the container
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "build-debug" // Task to build the Debug version
},
{
"name": "GDB Debug (Release Build)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/bin/x64/Release/MonitorRam",
"args": [
""
], // Arguments to pass to your program
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "build-release" // Task to build the Release version
}
]
}

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

@@ -0,0 +1,54 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "generate-makefiles",
"type": "shell",
"command": "premake5",
"args": [
"gmake"
], // Generate Makefiles
"group": {
"kind": "build",
"isDefault": false
},
"problemMatcher": []
},
{
"label": "build-debug",
"type": "shell",
"command": "make",
"args": [
"-C",
"build",
"config=debug_x64"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$gcc"
],
"dependsOn": "generate-makefiles"
},
{
"label": "build-release",
"type": "shell",
"command": "make",
"args": [
"-C",
"build",
"config=release_x64"
],
"group": {
"kind": "build",
"isDefault": false
},
"problemMatcher": [
"$gcc"
],
"dependsOn": "generate-makefiles"
}
]
}