DebuggerEvent

Types

Link copied to clipboard
@Serializable
data class BreakpointResolved(val breakpointId: BreakpointId, val location: Location) : DebuggerEvent

Fired when breakpoint is resolved to an actual script and location.

Link copied to clipboard
@Serializable
data class Paused(val callFrames: List<CallFrame>, val reason: PausedReason, val data: JsonObject? = null, val hitBreakpoints: List<String>? = null, val asyncStackTrace: StackTrace? = null, val asyncStackTraceId: StackTraceId? = null, val asyncCallStackTraceId: StackTraceId? = null) : DebuggerEvent

Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.

Link copied to clipboard
@Serializable
object Resumed : DebuggerEvent

Fired when the virtual machine resumed execution.

Link copied to clipboard
@Serializable
data class ScriptFailedToParse(val scriptId: ScriptId, val url: String, val startLine: Int, val startColumn: Int, val endLine: Int, val endColumn: Int, val executionContextId: ExecutionContextId, val hash: String, val executionContextAuxData: JsonObject? = null, val sourceMapURL: String? = null, val hasSourceURL: Boolean? = null, val isModule: Boolean? = null, val length: Int? = null, val stackTrace: StackTrace? = null, val codeOffset: Int? = null, val scriptLanguage: ScriptLanguage? = null, val embedderName: String? = null) : DebuggerEvent

Fired when virtual machine fails to parse the script.

Link copied to clipboard
@Serializable
data class ScriptParsed(val scriptId: ScriptId, val url: String, val startLine: Int, val startColumn: Int, val endLine: Int, val endColumn: Int, val executionContextId: ExecutionContextId, val hash: String, val executionContextAuxData: JsonObject? = null, val isLiveEdit: Boolean? = null, val sourceMapURL: String? = null, val hasSourceURL: Boolean? = null, val isModule: Boolean? = null, val length: Int? = null, val stackTrace: StackTrace? = null, val codeOffset: Int? = null, val scriptLanguage: ScriptLanguage? = null, val debugSymbols: DebugSymbols? = null, val embedderName: String? = null) : DebuggerEvent

Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.