diff --git a/lldb/source/Plugins/Protocol/MCP/Tool.cpp b/lldb/source/Plugins/Protocol/MCP/Tool.cpp index 7a5c114c5711..ec4599bf040a 100644 --- a/lldb/source/Plugins/Protocol/MCP/Tool.cpp +++ b/lldb/source/Plugins/Protocol/MCP/Tool.cpp @@ -183,6 +183,10 @@ DebuggerCreateTool::Call(const lldb_protocol::mcp::ToolArguments &) { debugger_sp->SetOutputFile(out); debugger_sp->SetErrorFile(out); + // A debugger driven over MCP has no event loop to service asynchronous + // stops, so a resume must not return before the process has stopped. + debugger_sp->SetAsyncExecution(false); + return createTextResult(to_uri(debugger_sp)); }