diff --git a/.zed/debug.json b/.zed/debug.json new file mode 100644 index 0000000..3905372 --- /dev/null +++ b/.zed/debug.json @@ -0,0 +1,23 @@ +// Project-local debug tasks +// +// For more documentation on how to configure debug tasks, +// see: https://zed.dev/docs/debugger +[ + { + "label": "Debug Fibonacci (CodeLLDB Remote)", + "adapter": "CodeLLDB", + "request": "launch", + "build": { + "command": "make", + "args": [ + "-C", + "/workspace/src/01_environment/fibonacci" + ] + }, + "program": "/workspace/src/01_environment/fibonacci/app", + "cwd": "/workspace/src/01_environment/fibonacci", + "processCreateCommands": [ + "gdb-remote 192.168.53.14:1234" + ] + } +] diff --git a/.zed/tasks.json b/.zed/tasks.json index edeed87..9b638ac 100644 --- a/.zed/tasks.json +++ b/.zed/tasks.json @@ -1,6 +1,4 @@ -// Project tasks configuration. See https://zed.dev/docs/tasks for documentation. -// -// Example: + [ { "label": "Get buildroot", @@ -50,5 +48,17 @@ "show_summary": true, "show_command": true, }, + { + "label": "gdbserver (fibonacci)", + "command": "ssh", + "args": [ + "-t", + "root@192.168.53.14", + "/usr/bin/gdbserver :1234 /workspace/src/01_environment/fibonacci/app 2" + ], + "use_new_terminal": true + }, + + ]