llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-lldb Author: David Spickett (DavidSpickett) <details> <summary>Changes</summary> This can be used to have VS Code debug various emulators, remote systems, hardware probes, etc. In my case I was doing this for the Gameboy Advance, https://github.com/stuij/gba-llvm-devkit/blob/main/docs/Debugging.md#debugging-using-visual-studio-code. It's not very complex if you know LLDB well, but when using another plugin, CodeLLDB, I was very glad that they had an example for it. So we should have one too. --- Full diff: https://github.com/llvm/llvm-project/pull/68866.diff 1 Files Affected: - (modified) lldb/tools/lldb-vscode/README.md (+15) ``````````diff diff --git a/lldb/tools/lldb-vscode/README.md b/lldb/tools/lldb-vscode/README.md index 6f930293126d53e..e5104adfda07942 100644 --- a/lldb/tools/lldb-vscode/README.md +++ b/lldb/tools/lldb-vscode/README.md @@ -212,6 +212,21 @@ This loads the coredump file `/cores/123.core` associated with the program } ``` +### Connect to a Remote Debug Server + +This connects to a debug server (e.g. `lldb-server`, `gdbserver`) that is +debugging the program `/tmp/a.out` and listening locally on port `2345`. + +```javascript +{ + "name": "Remote Debug Server", + "type": "lldb-vscode", + "request": "launch", + "program": "/tmp/a.out", + "launchCommands": ["gdb-remote 2345"], +} +``` + # Custom debugger commands The `lldb-vscode` tool includes additional custom commands to support the Debug `````````` </details> https://github.com/llvm/llvm-project/pull/68866 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits