Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ static constexpr llvm::StringLiteral kServerBinary =
static constexpr uint8_t kConnectAttempts = 5;
static constexpr auto kConnectDelay = std::chrono::milliseconds(100);

PlatformWebInspectorWasm::PlatformWebInspectorWasm() {
if (llvm::Error err = EnsureConnected()) {
LLDB_LOG_ERROR(GetLog(LLDBLog::Platform), std::move(err),
"EnsureConnected failed: {0}");
}
}

llvm::StringRef PlatformWebInspectorWasm::GetPluginDescriptionStatic() {
return "Platform for debugging Wasm via WebInspector";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class PlatformWebInspectorWasm : public PlatformWasm {
private:
static lldb::PlatformSP CreateInstance(bool force, const ArchSpec *arch);

PlatformWebInspectorWasm() = default;
PlatformWebInspectorWasm();

llvm::Error LaunchPlatformServer();
llvm::Error EnsureConnected();
Expand Down