ide: add debug config for vs code

Signed-off-by: Mahyar Koshkouei <mk@deltabeard.com>
This commit is contained in:
Mahyar Koshkouei
2025-07-30 21:35:36 +01:00
parent 7ce3252dee
commit 08ec6a7adb
2 changed files with 40 additions and 0 deletions

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

@@ -0,0 +1,19 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug on Citra/Azahar",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/output/3ds-arm/ctrmus.elf",
"cwd": "${workspaceFolder}",
"MIMode": "gdb",
"miDebuggerPath": "arm-none-eabi-gdb",
"miDebuggerArgs": "--silent",
"miDebuggerServerAddress": "localhost:24689",
"externalConsole": false,
"preLaunchTask": "Build 3DS ROM",
"targetArchitecture": "arm"
}
]
}

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

@@ -0,0 +1,21 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build 3DS ROM",
"type": "shell",
"command": "make",
"args": [ "output/3ds-arm/ctrmus.elf" ],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}