-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
debugger.ts
149 lines (112 loc) · 3.67 KB
/
debugger.ts
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import { codeIcon, runIcon, stopIcon } from '@jupyterlab/ui-components';
import { DebuggerConfig } from './config';
import { DebuggerEvaluateDialog } from './dialogs/evaluate';
import { ReadOnlyEditorFactory as EditorFactory } from './factory';
import { DebuggerHandler } from './handler';
import { EditorHandler as DebuggerEditorHandler } from './handlers/editor';
import {
closeAllIcon as closeAll,
pauseOnExceptionsIcon as pauseOnExceptions,
stepIntoIcon as stepInto,
stepOutIcon as stepOut,
stepOverIcon as stepOver,
variableIcon as variable,
viewBreakpointIcon as viewBreakpoint
} from './icons';
import { DebuggerModel } from './model';
import { VariablesBodyGrid } from './panels/variables/grid';
import { VariableMimeRenderer } from './panels/variables/mimerenderer';
import { DebuggerService } from './service';
import { DebuggerSession } from './session';
import { DebuggerSidebar } from './sidebar';
import { DebuggerSources } from './sources';
/**
* A namespace for `Debugger` statics.
*/
export namespace Debugger {
/**
* Debugger configuration for all kernels.
*/
export class Config extends DebuggerConfig {}
/**
* A handler for a CodeEditor.IEditor.
*/
export class EditorHandler extends DebuggerEditorHandler {}
/**
* A handler for debugging a widget.
*/
export class Handler extends DebuggerHandler {}
/**
* A model for a debugger.
*/
export class Model extends DebuggerModel {}
/**
* A widget factory for read only editors.
*/
export class ReadOnlyEditorFactory extends EditorFactory {}
/**
* The main IDebugger implementation.
*/
export class Service extends DebuggerService {}
/**
* A concrete implementation of IDebugger.ISession.
*/
export class Session extends DebuggerSession {}
/**
* The debugger sidebar UI.
*/
export class Sidebar extends DebuggerSidebar {}
/**
* The source and editor manager for a debugger instance.
*/
export class Sources extends DebuggerSources {}
/**
* A data grid that displays variables in a debugger session.
*/
export class VariablesGrid extends VariablesBodyGrid {}
/**
* A widget to display data according to its mime type
*/
export class VariableRenderer extends VariableMimeRenderer {}
/**
* The command IDs used by the debugger plugin.
*/
export namespace CommandIDs {
export const debugContinue = 'debugger:continue';
export const terminate = 'debugger:terminate';
export const next = 'debugger:next';
export const stepIn = 'debugger:stepIn';
export const stepOut = 'debugger:stepOut';
export const inspectVariable = 'debugger:inspect-variable';
export const renderMimeVariable = 'debugger:render-mime-variable';
export const evaluate = 'debugger:evaluate';
export const restartDebug = 'debugger:restart-debug';
export const pause = 'debugger:pause';
}
/**
* The debugger user interface icons.
*/
export namespace Icons {
export const closeAllIcon = closeAll;
export const evaluateIcon = codeIcon;
export const continueIcon = runIcon;
export const stepIntoIcon = stepInto;
export const stepOutIcon = stepOut;
export const stepOverIcon = stepOver;
export const terminateIcon = stopIcon;
export const variableIcon = variable;
export const viewBreakpointIcon = viewBreakpoint;
export const pauseOnExceptionsIcon = pauseOnExceptions;
}
/**
* The debugger dialog helpers.
*/
export namespace Dialogs {
/**
* Open a code prompt in a dialog.
*/
export const getCode = DebuggerEvaluateDialog.getCode;
}
}