Skip to content

Commit

Permalink
Add tasks to debug tests in Dev Container
Browse files Browse the repository at this point in the history
  • Loading branch information
rhargreaves committed Jun 24, 2024
1 parent 5824514 commit ec02e46
Showing 1 changed file with 57 additions and 11 deletions.
68 changes: 57 additions & 11 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,62 @@
"version": "0.2.0",
"configurations": [
{
"name": "Attach to unit tests",
"type": "lldb",
"request": "custom",
"targetCreateCommands": [
"target create ${workspaceFolder}/tests/bin/unit_tests"
],
"processCreateCommands": [
"gdb-remote 10.211.55.2:2345"
],
"sourceMap": { "/app" : "${workspaceFolder}" }
"name": "(gdb) Unit Test",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/tests/bin/unit_tests",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [
{
"name": "LD_LIBRARY_PATH",
"value": "/workspaces/mega-drive-midi-interface/tests/cmocka/build/src/"
}
],
"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
}
]
},
{
"name": "(gdb) System Test",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/tests/bin/system_tests",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [
{
"name": "LD_LIBRARY_PATH",
"value": "/workspaces/mega-drive-midi-interface/tests/cmocka/build/src/"
}
],
"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
}
]
},
{
"type": "gdb",
Expand All @@ -24,4 +70,4 @@
"gdbpath": "gdb"
}
]
}
}

0 comments on commit ec02e46

Please sign in to comment.