JDevlieghere wrote: > We do support the `startDebugging` reverse request > https://microsoft.github.io/debug-adapter-protocol/specification#Reverse_Requests_StartDebugging. > I use this to attach to multiple processes when tests are running from some > scripts that involve multiple processes. I use the script hook we have > > https://github.com/llvm/llvm-project/blob/680b3b742da02972bc0b5298b6f472d2b95ca90a/lldb/tools/lldb-dap/DAP.h#L135 > > to call this from a python script. With the lldb-dap server mode we can > handle multiple DAP sessions from the same binary, or you can have lldb-dap > launch one instance per debug session. The DAP doesn't really have a way to > have multiple processes per debug session, but it does allow for multiple > debug sessions in general. Compound launch configurations are one way to get > this setup > https://code.visualstudio.com/docs/debugtest/debugging-configuration#_compound-launch-configurations > for example, you could have a server and a client in a compound launch > configuration.
Cool, I knew we supported the request but I didn't know how that was hooked up. So it seems like this may be better supported than I thought. In that case we should definitely make sure we test that configuration and make sure it keeps working. https://github.com/llvm/llvm-project/pull/140142 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits