[Lldb-commits] [lldb] [lldb-dap] Add support for launching supported clients (PR #165941)
Adrian Vogelsgesang via lldb-commits
lldb-commits at lists.llvm.org
Mon Nov 3 11:24:46 PST 2025
================
@@ -0,0 +1,57 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "ClientLauncher.h"
+#include "llvm/ADT/StringExtras.h"
+#include "llvm/ADT/StringSwitch.h"
+#include "llvm/Support/FormatVariadic.h"
+
+using namespace lldb_dap;
+
+std::optional<ClientLauncher::Client>
+ClientLauncher::GetClientFrom(llvm::StringRef str) {
+ return llvm::StringSwitch<std::optional<ClientLauncher::Client>>(str.lower())
+ .Case("vscode", ClientLauncher::VSCode)
----------------
vogelsgesang wrote:
would be great to also have a "url" client which simply prints the URL to stdout. That would allow me to also use it with custom scripts
https://github.com/llvm/llvm-project/pull/165941
More information about the lldb-commits
mailing list