Kubes
Kubes
- 6
- Posts
- 7
- Years
- Connecticut, USA
- Seen Jun 23, 2023
I'm having trouble connecting VS Code's debugger to my .elf file running in mGBA. I can have the GDB server running fine on mGBA, but VS Code upon trying to conenct says, "The specified task cannot be tracked." Anyone able to share their configuration or have any idea?
tasks.json
launch.json
tasks.json
Spoiler:
Code:
{
"version": "2.0.0",
"tasks": [
{
"label": "Build Debug",
"type": "shell",
"promptOnClose": true,
"command": "make DINFO=1 -j16",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": [
"$gcc"
]
},
{
"label": "Build Release",
"type": "shell",
"promptOnClose": true,
"command": "make -j16",
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": [
"$gcc"
]
},
{
"label": "Clean",
"type": "shell",
"promptOnClose": true,
"command": "make clean -j16",
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": [
"$gcc"
]
},
{
"label": "mGBA_run",
"type": "shell",
"command": "X:/Pokemon_Decompiled_Modding/mGBA-0.8.3-win64/mGBA.exe",
"args": [
"X:/Pokemon_Decompiled_Modding/pokeemerald_dizzyEgg/pokeemerald/pokeemerald.elf"
],
"group": "test",
"isBackground": true
},
{
"label": "mGBA_debug",
"type": "shell",
"command": "X:/Pokemon_Decompiled_Modding/mGBA-0.8.3-win64/mGBA.exe",
"args": [
"-g",
"X:/Pokemon_Decompiled_Modding/pokeemerald_dizzyEgg/pokeemerald/pokeemerald.elf"
],
"group": "test",
"isBackground": true
}
]
}
launch.json
Spoiler:
Code:
{
"version": "0.2.0",
"configurations": [
{
"type": "gdb",
"request": "attach",
"name": "Launch Debug",
"executable": "X:/Pokemon_Decompiled_Modding/pokeemerald_dizzyEgg/pokeemerald/pokeemerald.elf",
"target": "localhost:2345",
"remote": true,
"cwd": "${workspaceRoot}",
"gdbpath": "X:/Pokemon_Decompiled_Modding/Tools/devkitPro/devkitARM/bin/arm-none-eabi-gdb.exe",
"preLaunchTask": "mGBA_debug"
}
]
}