[Lldb-commits] [lldb] Support single stopped event in lldb-dap (PR #98568)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 15 11:23:37 PDT 2024


================
@@ -1625,6 +1657,11 @@ void request_initialize(const llvm::json::Object &request) {
       "Get or set the repl behavior of lldb-dap evaluation requests.");
 
   g_dap.progress_event_thread = std::thread(ProgressEventThreadFunction);
+  // singleStoppedEvent option is not from formal DAP specification. It is an
+  // lldb specific option to experiment stopped events behaivor against
+  // application with multiple threads.
+  g_dap.single_stopped_event =
+      GetBoolean(arguments, "singleStoppedEvent", false);
----------------
clayborg wrote:

Can we add this key/value pair as a launch configuration instead of adding it from the IDE? Then we can document the feature in the package.json with lots of warning text. Also the name should be lldb specific to ensure we don't conflict with future VS code key/value pairs. Maybe add a "__lldbSingleStopEvent"? 

There is also a type script plug-in in the upstream LLDB where you can add the necessary setting to so if we leave this in the initialize packet, it can get sent down here

https://github.com/llvm/llvm-project/pull/98568


More information about the lldb-commits mailing list