Skip to content
Closed
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
31 changes: 31 additions & 0 deletions packages/debugger/src/domain/activeEntries.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import type { StackFrame } from './stacktrace'

export interface ActiveEntry {
start: number
timestamp?: number
message?: string
entry?: {
arguments: Record<string, any>
}
stack?: StackFrame[]
duration?: number
return?: {
arguments?: Record<string, any>
locals?: Record<string, any>
throwable?: {
message: string
stacktrace: StackFrame[]
}
}
exception?: Error
}

export const active = new Map<string, Array<ActiveEntry | null>>()

export function clearActiveEntries(probeId?: string): void {
if (probeId !== undefined) {
active.delete(probeId)
} else {
active.clear()
}
}
Loading
Loading