Skip to content

ObsidianTransport.beginConsoleCapture method

ObsidianTransport › beginConsoleCapture

Begins capturing the target's native console/error stream so a later ObsidianTransport.readConsoleCaptureSince can return everything logged since this call.

Used to surface the *real* plugin-load error when Obsidian swallows it before the harness's loadPlugin monkey-patch sees it (the error then only exists in the renderer/WebView console). Optional and platform-specific: implemented by AppiumTransport (tails adb logcat); absent on DesktopCdpTransport (desktop errors are surfaced in-renderer, and a developer can open DevTools directly).

Signature:

beginConsoleCapture(): Promise<ConsoleCaptureHandle | undefined>

Returns: Promise<ConsoleCaptureHandle | undefined>An opaque handle to pass to ObsidianTransport.readConsoleCaptureSince, or undefined when unsupported.