-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.js
More file actions
54 lines (31 loc) · 967 Bytes
/
types.js
File metadata and controls
54 lines (31 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
'use babel'
/* @flow */
import DebuggerController from './debugger-controller'
import Breakpoint from './breakpoint'
import type { StackFrame } from './stack-frame'
import type { Variable } from './variable'
export type DebuggerTarget = {
filePath: string,
arguments: ?string
}
export type DebuggerView = {
activate(controller: DebuggerController): void,
dispose(): void
}
export type Debugger = {
name(): string,
onSessionEvent(callback: Function): void,
onBreakpointEvent(callback: Function): void,
onTargetEvent(callback: Function): void,
start(target: DebuggerTarget, config: Object): void,
stop(): void,
resume(): void,
pause(): void,
stepInto(): void,
stepOver(): void,
insertBreakpoint(breakpoint: Breakpoint): void,
getCallStack(): Promise<Array<StackFrame>>,
getSelectedFrame(): Promise<StackFrame>,
setSelectedFrame(level: number): void,
getVariableList(): Promise<Array<Variable>>
}