DebugHandler

fun interface DebugHandler

Answers a declared route: DebugRoute.handle sets it. A Kotlin lambda converts to it: handle { call -> ... }.

Functions

Link copied to clipboard
abstract fun handle(call: DebugCall): DebugResponse

Answers call. Runs off the main thread, possibly at the same time as other requests, with the rules of DebugTab.handle. To answer an error from deep in the handler's code, throw a DebugResponseException.