@effectful/debugger › "state" › State
- State
- activeTop
- brk
- brkOnAnyException
- brkOnUncaughtException
- call
- debug
- error
- exception
- moduleId
- modules
- modulesById
- needsBreak
- onLoad
- onNewSource
- onStop
- onThread
- queue
- running
- suspended
- syncStack
- terminated
- threadId
- top
- value
• activeTop: Frame | null
Defined in debugger/src/state.ts:285
top of currently debugging thread,
the value is saved here while some blackbox thread may run
• brk: Brk | null
Defined in debugger/src/state.ts:245
current breakpoint id
• brkOnAnyException: boolean
Defined in debugger/src/state.ts:278
stop on any exceptions
• brkOnUncaughtException: boolean
Defined in debugger/src/state.ts:280
stop on uncaught exceptions
• call: any
Defined in debugger/src/state.ts:272
reference of a function which is expected to be called
• debug: boolean
Defined in debugger/src/state.ts:234
stopping on break points if true, otherwise ignoring them
• error: boolean
Defined in debugger/src/state.ts:260
in error state
• exception: any
Defined in debugger/src/state.ts:262
currently propagating exception
• moduleId: string | null
Defined in debugger/src/state.ts:274
module id which is expected to be required
• modules: object
Defined in debugger/src/state.ts:247
loaded modules (by full path)
- [ name: string]: Module
• modulesById: object
Defined in debugger/src/state.ts:249
loaded modules (by CommonJs id)
- [ name: string]: Module
• needsBreak: function
Defined in debugger/src/state.ts:270
queries if the engine should stop on this brk
▸ (brk: Brk, frame: Frame, param?: any): boolean
Parameters:
| Name | Type |
|---|---|
brk |
Brk |
frame |
Frame |
param? |
any |
• onLoad? : undefined | function
Defined in debugger/src/state.ts:266
a callback called when some module's sources are changed
• onNewSource: function
Defined in debugger/src/state.ts:287
some new generated source can be debugged
▸ (id: number, code: string): void
Parameters:
| Name | Type |
|---|---|
id |
number |
code |
string |
• onStop: function
Defined in debugger/src/state.ts:289
stopping on a breakpoint
▸ (): void
• onThread: function
Defined in debugger/src/state.ts:258
this is called if something a new thread is added into queue
or some thread was finished (so the caller can proceed with
▸ (): void
• queue: Job[]
Defined in debugger/src/state.ts:253
next functions to run
• running: boolean
Defined in debugger/src/state.ts:243
the engine now runs some code and expects a breakpoint
otherwise it is some new thread which isn't tracked by the debugger
and on next breakpoint it is suspended in queue, to run after
with running: true (if the breakpoints aren't ignored by debug:false)
Defined in debugger/src/state.ts:276
currently suspended but not exited frames (e.g. on await expressions)
• syncStack: Job[]
Defined in debugger/src/state.ts:251
saved context for synchronous functions
• terminated: boolean
Defined in debugger/src/state.ts:236
everything is done
• threadId: number
Defined in debugger/src/state.ts:292
unique number of this execution context
• top: Frame | null
Defined in debugger/src/state.ts:268
current execution stack
• value: any
Defined in debugger/src/state.ts:264
a current value to be passed into the top of stack (or an exception if error:true)