@jupyterlab/debugger 3.3.0-alpha.17 → 3.3.0-alpha.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/debugger.d.ts +2 -0
- package/lib/debugger.js +3 -1
- package/lib/debugger.js.map +1 -1
- package/lib/handler.js +9 -2
- package/lib/handler.js.map +1 -1
- package/lib/handlers/editor.d.ts +4 -0
- package/lib/handlers/editor.js +6 -0
- package/lib/handlers/editor.js.map +1 -1
- package/lib/handlers/file.d.ts +1 -0
- package/lib/handlers/file.js +6 -1
- package/lib/handlers/file.js.map +1 -1
- package/lib/handlers/notebook.js +5 -1
- package/lib/handlers/notebook.js.map +1 -1
- package/lib/icons.d.ts +2 -0
- package/lib/icons.js +10 -0
- package/lib/icons.js.map +1 -1
- package/lib/model.d.ts +5 -0
- package/lib/model.js +3 -0
- package/lib/model.js.map +1 -1
- package/lib/panels/breakpoints/index.d.ts +18 -0
- package/lib/panels/breakpoints/index.js +11 -4
- package/lib/panels/breakpoints/index.js.map +1 -1
- package/lib/panels/kernelSources/body.d.ts +47 -0
- package/lib/panels/kernelSources/body.js +86 -0
- package/lib/panels/kernelSources/body.js.map +1 -0
- package/lib/panels/kernelSources/filter.d.ts +13 -0
- package/lib/panels/kernelSources/filter.js +17 -0
- package/lib/panels/kernelSources/filter.js.map +1 -0
- package/lib/panels/kernelSources/header.d.ts +19 -0
- package/lib/panels/kernelSources/header.js +33 -0
- package/lib/panels/kernelSources/header.js.map +1 -0
- package/lib/panels/kernelSources/index.d.ts +39 -0
- package/lib/panels/kernelSources/index.js +59 -0
- package/lib/panels/kernelSources/index.js.map +1 -0
- package/lib/panels/kernelSources/model.d.ts +56 -0
- package/lib/panels/kernelSources/model.js +86 -0
- package/lib/panels/kernelSources/model.js.map +1 -0
- package/lib/service.d.ts +17 -1
- package/lib/service.js +89 -1
- package/lib/service.js.map +1 -1
- package/lib/session.d.ts +23 -1
- package/lib/session.js +39 -5
- package/lib/session.js.map +1 -1
- package/lib/sidebar.d.ts +9 -0
- package/lib/sidebar.js +9 -1
- package/lib/sidebar.js.map +1 -1
- package/lib/tokens.d.ts +75 -3
- package/lib/tokens.js.map +1 -1
- package/package.json +19 -19
- package/style/base.css +1 -0
- package/style/icons/open-kernel-source.svg +6 -0
- package/style/icons/pause.svg +6 -0
- package/style/icons.css +13 -3
- package/style/kernelSources.css +42 -0
package/lib/session.js
CHANGED
|
@@ -17,6 +17,9 @@ export class DebuggerSession {
|
|
|
17
17
|
this._ready = new PromiseDelegate();
|
|
18
18
|
this._isDisposed = false;
|
|
19
19
|
this._isStarted = false;
|
|
20
|
+
this._pausingOnExceptions = [];
|
|
21
|
+
this._exceptionPaths = [];
|
|
22
|
+
this._exceptionBreakpointFilters = [];
|
|
20
23
|
this._disposed = new Signal(this);
|
|
21
24
|
this._eventMessage = new Signal(this);
|
|
22
25
|
this.connection = options.connection;
|
|
@@ -28,6 +31,12 @@ export class DebuggerSession {
|
|
|
28
31
|
get isDisposed() {
|
|
29
32
|
return this._isDisposed;
|
|
30
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Returns the initialize response .
|
|
36
|
+
*/
|
|
37
|
+
get capabilities() {
|
|
38
|
+
return this._capabilities;
|
|
39
|
+
}
|
|
31
40
|
/**
|
|
32
41
|
* A signal emitted when the debug session is disposed.
|
|
33
42
|
*/
|
|
@@ -71,11 +80,32 @@ export class DebuggerSession {
|
|
|
71
80
|
}
|
|
72
81
|
}
|
|
73
82
|
/**
|
|
74
|
-
* Whether the debug session is started
|
|
83
|
+
* Whether the debug session is started.
|
|
75
84
|
*/
|
|
76
85
|
get isStarted() {
|
|
77
86
|
return this._isStarted;
|
|
78
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* Whether to pause on exceptions
|
|
90
|
+
*/
|
|
91
|
+
get pausingOnExceptions() {
|
|
92
|
+
return this._pausingOnExceptions;
|
|
93
|
+
}
|
|
94
|
+
set pausingOnExceptions(updatedPausingOnExceptions) {
|
|
95
|
+
this._pausingOnExceptions = updatedPausingOnExceptions;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Exception paths defined by the debugger
|
|
99
|
+
*/
|
|
100
|
+
get exceptionPaths() {
|
|
101
|
+
return this._exceptionPaths;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Exception breakpoint filters defined by the debugger
|
|
105
|
+
*/
|
|
106
|
+
get exceptionBreakpointFilters() {
|
|
107
|
+
return this._exceptionBreakpointFilters;
|
|
108
|
+
}
|
|
79
109
|
/**
|
|
80
110
|
* Signal emitted for debug event messages.
|
|
81
111
|
*/
|
|
@@ -97,8 +127,8 @@ export class DebuggerSession {
|
|
|
97
127
|
* Start a new debug session
|
|
98
128
|
*/
|
|
99
129
|
async start() {
|
|
100
|
-
var _a, _b, _c;
|
|
101
|
-
const
|
|
130
|
+
var _a, _b, _c, _d;
|
|
131
|
+
const initializeResponse = await this.sendRequest('initialize', {
|
|
102
132
|
clientID: 'jupyterlab',
|
|
103
133
|
clientName: 'JupyterLab',
|
|
104
134
|
adapterID: (_c = (_b = (_a = this.connection) === null || _a === void 0 ? void 0 : _a.kernel) === null || _b === void 0 ? void 0 : _b.name) !== null && _c !== void 0 ? _c : '',
|
|
@@ -110,10 +140,12 @@ export class DebuggerSession {
|
|
|
110
140
|
supportsRunInTerminalRequest: true,
|
|
111
141
|
locale: document.documentElement.lang
|
|
112
142
|
});
|
|
113
|
-
if (!
|
|
114
|
-
throw new Error(`Could not start the debugger: ${
|
|
143
|
+
if (!initializeResponse.success) {
|
|
144
|
+
throw new Error(`Could not start the debugger: ${initializeResponse.message}`);
|
|
115
145
|
}
|
|
146
|
+
this._capabilities = initializeResponse.body;
|
|
116
147
|
this._isStarted = true;
|
|
148
|
+
this._exceptionBreakpointFilters = (_d = initializeResponse.body) === null || _d === void 0 ? void 0 : _d.exceptionBreakpointFilters;
|
|
117
149
|
await this.sendRequest('attach', {});
|
|
118
150
|
}
|
|
119
151
|
/**
|
|
@@ -130,8 +162,10 @@ export class DebuggerSession {
|
|
|
130
162
|
* Restore the state of a debug session.
|
|
131
163
|
*/
|
|
132
164
|
async restoreState() {
|
|
165
|
+
var _a;
|
|
133
166
|
const message = await this.sendRequest('debugInfo', {});
|
|
134
167
|
this._isStarted = message.body.isStarted;
|
|
168
|
+
this._exceptionPaths = (_a = message.body) === null || _a === void 0 ? void 0 : _a.exceptionPaths;
|
|
135
169
|
return message;
|
|
136
170
|
}
|
|
137
171
|
/**
|
package/lib/session.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","sourceRoot":"","sources":["../src/session.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAI3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAW,MAAM,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../src/session.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAI3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAW,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAMpD;;GAEG;AACH,MAAM,OAAO,eAAe;IAC1B;;;;OAIG;IACH,YAAY,OAAiC;QAuOrC,SAAI,GAAG,CAAC,CAAC;QACT,WAAM,GAAG,IAAI,eAAe,EAAQ,CAAC;QAGrC,gBAAW,GAAG,KAAK,CAAC;QACpB,eAAU,GAAG,KAAK,CAAC;QACnB,yBAAoB,GAAa,EAAE,CAAC;QACpC,oBAAe,GAAa,EAAE,CAAC;QAC/B,gCAA2B,GAEnB,EAAE,CAAC;QACX,cAAS,GAAG,IAAI,MAAM,CAAa,IAAI,CAAC,CAAC;QACzC,kBAAa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C;IAC3D,CAAC;IAED;;;;;OAKG;IACK,YAAY,CAClB,MAAkC,EAClC,OAAoC;QAEpC,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC;QACxC,IAAI,OAAO,KAAK,aAAa,EAAE;YAC7B,OAAO;SACR;QACD,MAAM,KAAK,GAAG,OAAO,CAAC,OAAmC,CAAC;QAC1D,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAED;;;;OAIG;IACK,KAAK,CAAC,iBAAiB,CAC7B,GAA8C;;QAE9C,MAAM,MAAM,SAAG,IAAI,CAAC,UAAU,0CAAE,MAAM,CAAC;QACvC,IAAI,CAAC,MAAM,EAAE;YACX,OAAO,OAAO,CAAC,MAAM,CACnB,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAC1D,CAAC;SACH;QACD,MAAM,KAAK,GAAG,IAAI,eAAe,EAAgC,CAAC;QAClE,MAAM,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;QACxC,MAAM,CAAC,OAAO,GAAG,CAAC,GAAiC,EAAQ,EAAE;YAC3D,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACrB,CAAC,CAAC;QACF,MAAM,MAAM,CAAC,IAAI,CAAC;QAClB,OAAO,KAAK,CAAC,OAAO,CAAC;IACvB,CAAC;CAmBF"}
|
package/lib/sidebar.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Panel, Widget } from '@lumino/widgets';
|
|
|
5
5
|
import { Breakpoints as BreakpointsPanel } from './panels/breakpoints';
|
|
6
6
|
import { Callstack as CallstackPanel } from './panels/callstack';
|
|
7
7
|
import { Sources as SourcesPanel } from './panels/sources';
|
|
8
|
+
import { KernelSources as KernelSourcesPanel } from './panels/kernelSources';
|
|
8
9
|
import { Variables as VariablesPanel } from './panels/variables';
|
|
9
10
|
import { IDebugger } from './tokens';
|
|
10
11
|
/**
|
|
@@ -67,6 +68,10 @@ export declare class DebuggerSidebar extends Panel implements IDebugger.ISidebar
|
|
|
67
68
|
* The sources widget.
|
|
68
69
|
*/
|
|
69
70
|
readonly sources: SourcesPanel;
|
|
71
|
+
/**
|
|
72
|
+
* The kernel sources widget.
|
|
73
|
+
*/
|
|
74
|
+
readonly kernelSources: KernelSourcesPanel;
|
|
70
75
|
/**
|
|
71
76
|
* Container for debugger panels.
|
|
72
77
|
*/
|
|
@@ -88,6 +93,10 @@ export declare namespace DebuggerSidebar {
|
|
|
88
93
|
* The callstack toolbar commands.
|
|
89
94
|
*/
|
|
90
95
|
callstackCommands: CallstackPanel.ICommands;
|
|
96
|
+
/**
|
|
97
|
+
* The callstack toolbar commands.
|
|
98
|
+
*/
|
|
99
|
+
breakpointsCommands: BreakpointsPanel.ICommands;
|
|
91
100
|
/**
|
|
92
101
|
* The editor services.
|
|
93
102
|
*/
|
package/lib/sidebar.js
CHANGED
|
@@ -6,6 +6,7 @@ import { Panel, SplitPanel, Widget } from '@lumino/widgets';
|
|
|
6
6
|
import { Breakpoints as BreakpointsPanel } from './panels/breakpoints';
|
|
7
7
|
import { Callstack as CallstackPanel } from './panels/callstack';
|
|
8
8
|
import { Sources as SourcesPanel } from './panels/sources';
|
|
9
|
+
import { KernelSources as KernelSourcesPanel } from './panels/kernelSources';
|
|
9
10
|
import { Variables as VariablesPanel } from './panels/variables';
|
|
10
11
|
/**
|
|
11
12
|
* A debugger sidebar.
|
|
@@ -21,7 +22,7 @@ export class DebuggerSidebar extends Panel {
|
|
|
21
22
|
this.id = 'jp-debugger-sidebar';
|
|
22
23
|
this.title.icon = bugIcon;
|
|
23
24
|
this.addClass('jp-DebuggerSidebar');
|
|
24
|
-
const { callstackCommands, editorServices, service, themeManager } = options;
|
|
25
|
+
const { callstackCommands, breakpointsCommands, editorServices, service, themeManager } = options;
|
|
25
26
|
const translator = options.translator || nullTranslator;
|
|
26
27
|
const model = service.model;
|
|
27
28
|
this.variables = new VariablesPanel({
|
|
@@ -38,6 +39,7 @@ export class DebuggerSidebar extends Panel {
|
|
|
38
39
|
});
|
|
39
40
|
this.breakpoints = new BreakpointsPanel({
|
|
40
41
|
service,
|
|
42
|
+
commands: breakpointsCommands,
|
|
41
43
|
model: model.breakpoints,
|
|
42
44
|
translator
|
|
43
45
|
});
|
|
@@ -47,6 +49,11 @@ export class DebuggerSidebar extends Panel {
|
|
|
47
49
|
editorServices,
|
|
48
50
|
translator
|
|
49
51
|
});
|
|
52
|
+
this.kernelSources = new KernelSourcesPanel({
|
|
53
|
+
model: model.kernelSources,
|
|
54
|
+
service,
|
|
55
|
+
translator
|
|
56
|
+
});
|
|
50
57
|
const header = new DebuggerSidebar.Header();
|
|
51
58
|
this.addWidget(header);
|
|
52
59
|
model.titleChanged.connect((_, title) => {
|
|
@@ -60,6 +67,7 @@ export class DebuggerSidebar extends Panel {
|
|
|
60
67
|
this.addItem(this.callstack);
|
|
61
68
|
this.addItem(this.breakpoints);
|
|
62
69
|
this.addItem(this.sources);
|
|
70
|
+
this.addItem(this.kernelSources);
|
|
63
71
|
}
|
|
64
72
|
/**
|
|
65
73
|
* Add an item at the end of the sidebar.
|
package/lib/sidebar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.js","sourceRoot":"","sources":["../src/sidebar.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAM3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEpD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE5D,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEvE,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE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AE,CAAC;IAClB,CAAC;CA+BF;AAED;;GAEG;AACH,WAAiB,eAAe;IAoC9B;;OAEG;IACH,MAAa,MAAO,SAAQ,MAAM;QAChC;;WAEG;QACH;YACE,KAAK,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YACxC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;gBAC7B,IAAI,CAAC,IAAK,CAAC,aAAa,CAAC,IAAI,CAAE,CAAC,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;YACjE,CAAC,CAAC,CAAC;QACL,CAAC;KACF;IAVY,sBAAM,SAUlB,CAAA;AACH,CAAC,EAlDgB,eAAe,KAAf,eAAe,QAkD/B;AAED;;GAEG;AACH,IAAU,OAAO,CAgBhB;AAhBD,WAAU,OAAO;IACf;;OAEG;IACH,SAAgB,YAAY;QAC1B,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC7C,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QAE9C,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAE3C,KAAK,CAAC,WAAW,GAAG,GAAG,CAAC;QACxB,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;QACzC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAE1B,OAAO,MAAM,CAAC;IAChB,CAAC;IAXe,oBAAY,eAW3B,CAAA;AACH,CAAC,EAhBS,OAAO,KAAP,OAAO,QAgBhB"}
|
package/lib/tokens.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { ReadonlyJSONObject, Token } from '@lumino/coreutils';
|
|
|
4
4
|
import { IObservableDisposable } from '@lumino/disposable';
|
|
5
5
|
import { ISignal, Signal } from '@lumino/signaling';
|
|
6
6
|
import { Widget } from '@lumino/widgets';
|
|
7
|
-
import { DebugProtocol } from 'vscode
|
|
7
|
+
import { DebugProtocol } from '@vscode/debugprotocol';
|
|
8
8
|
import { DebuggerHandler } from './handler';
|
|
9
9
|
/**
|
|
10
10
|
* An interface describing an application's visual debugger.
|
|
@@ -18,6 +18,10 @@ export interface IDebugger {
|
|
|
18
18
|
* Whether the current debugger is started.
|
|
19
19
|
*/
|
|
20
20
|
readonly isStarted: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the session is pausing for exceptions.
|
|
23
|
+
*/
|
|
24
|
+
readonly isPausingOnExceptions: boolean;
|
|
21
25
|
/**
|
|
22
26
|
* The debugger service's model.
|
|
23
27
|
*/
|
|
@@ -34,6 +38,14 @@ export interface IDebugger {
|
|
|
34
38
|
* Removes all the breakpoints from the current notebook or console
|
|
35
39
|
*/
|
|
36
40
|
clearBreakpoints(): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Used to determine if kernel has pause on exception capabilities
|
|
43
|
+
*/
|
|
44
|
+
pauseOnExceptionsIsValid(): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Handles enabling and disabling of Pause on Exception
|
|
47
|
+
*/
|
|
48
|
+
pauseOnExceptions(enable: boolean): Promise<void>;
|
|
37
49
|
/**
|
|
38
50
|
* Continues the execution of the current thread.
|
|
39
51
|
*/
|
|
@@ -85,6 +97,10 @@ export interface IDebugger {
|
|
|
85
97
|
* Makes the current thread run again for one step.
|
|
86
98
|
*/
|
|
87
99
|
next(): Promise<void>;
|
|
100
|
+
/**
|
|
101
|
+
* Requests all the loaded modules and display them.
|
|
102
|
+
*/
|
|
103
|
+
displayModules(): Promise<void>;
|
|
88
104
|
/**
|
|
89
105
|
* Restart the debugger.
|
|
90
106
|
* Precondition: isStarted
|
|
@@ -173,6 +189,19 @@ export declare namespace IDebugger {
|
|
|
173
189
|
*/
|
|
174
190
|
breakpoints: Map<string, IDebugger.IBreakpoint[]>;
|
|
175
191
|
};
|
|
192
|
+
/**
|
|
193
|
+
* The type for a kernel source file.
|
|
194
|
+
*/
|
|
195
|
+
type KernelSource = {
|
|
196
|
+
/**
|
|
197
|
+
* The name of the source.
|
|
198
|
+
*/
|
|
199
|
+
name: string;
|
|
200
|
+
/**
|
|
201
|
+
* The path of the source.
|
|
202
|
+
*/
|
|
203
|
+
path: string;
|
|
204
|
+
};
|
|
176
205
|
/**
|
|
177
206
|
* Debugger file and hashing configuration.
|
|
178
207
|
*/
|
|
@@ -229,10 +258,23 @@ export declare namespace IDebugger {
|
|
|
229
258
|
* The API session connection to connect to a debugger.
|
|
230
259
|
*/
|
|
231
260
|
connection: Session.ISessionConnection | null;
|
|
261
|
+
readonly capabilities: DebugProtocol.Capabilities | undefined;
|
|
232
262
|
/**
|
|
233
|
-
* Whether the debug session is started
|
|
263
|
+
* Whether the debug session is started.
|
|
234
264
|
*/
|
|
235
265
|
readonly isStarted: boolean;
|
|
266
|
+
/**
|
|
267
|
+
* Whether the debug session is pausing on exceptions.
|
|
268
|
+
*/
|
|
269
|
+
pausingOnExceptions: string[];
|
|
270
|
+
/**
|
|
271
|
+
* Whether the debug session is pausing on exceptions.
|
|
272
|
+
*/
|
|
273
|
+
exceptionPaths: string[];
|
|
274
|
+
/**
|
|
275
|
+
* Get exception filters and default values.
|
|
276
|
+
*/
|
|
277
|
+
exceptionBreakpointFilters: DebugProtocol.ExceptionBreakpointsFilter[] | undefined;
|
|
236
278
|
/**
|
|
237
279
|
* Signal emitted for debug event messages.
|
|
238
280
|
*/
|
|
@@ -452,9 +494,10 @@ export declare namespace IDebugger {
|
|
|
452
494
|
* Whether the kernel supports variable rich rendering or not.
|
|
453
495
|
*/
|
|
454
496
|
richRendering?: boolean;
|
|
455
|
-
stoppedThreads: number[];
|
|
456
497
|
tmpFilePrefix: string;
|
|
457
498
|
tmpFileSuffix: string;
|
|
499
|
+
stoppedThreads: number[];
|
|
500
|
+
exceptionPaths: string[];
|
|
458
501
|
};
|
|
459
502
|
}
|
|
460
503
|
/**
|
|
@@ -677,6 +720,10 @@ export declare namespace IDebugger {
|
|
|
677
720
|
* The sources UI model.
|
|
678
721
|
*/
|
|
679
722
|
readonly sources: ISources;
|
|
723
|
+
/**
|
|
724
|
+
* The kernel sources UI model.
|
|
725
|
+
*/
|
|
726
|
+
readonly kernelSources: IKernelSources;
|
|
680
727
|
/**
|
|
681
728
|
* The set of threads in stopped state.
|
|
682
729
|
*/
|
|
@@ -719,6 +766,31 @@ export declare namespace IDebugger {
|
|
|
719
766
|
*/
|
|
720
767
|
open(): void;
|
|
721
768
|
}
|
|
769
|
+
/**
|
|
770
|
+
* The kernel sources UI model.
|
|
771
|
+
*/
|
|
772
|
+
interface IKernelSources {
|
|
773
|
+
/**
|
|
774
|
+
* The kernel source.
|
|
775
|
+
*/
|
|
776
|
+
kernelSources: IDebugger.KernelSource[] | null;
|
|
777
|
+
/**
|
|
778
|
+
* The filter to apply.
|
|
779
|
+
*/
|
|
780
|
+
filter: string;
|
|
781
|
+
/**
|
|
782
|
+
* Signal emitted when the kernel sources have changed.
|
|
783
|
+
*/
|
|
784
|
+
readonly changed: ISignal<IDebugger.Model.IKernelSources, IDebugger.KernelSource[] | null>;
|
|
785
|
+
/**
|
|
786
|
+
* Signal emitted when a kernel source has be opened in the main area.
|
|
787
|
+
*/
|
|
788
|
+
readonly kernelSourceOpened: ISignal<IDebugger.Model.IKernelSources, IDebugger.Source | null>;
|
|
789
|
+
/**
|
|
790
|
+
* Open a source in the main area.
|
|
791
|
+
*/
|
|
792
|
+
open(source: IDebugger.Source): void;
|
|
793
|
+
}
|
|
722
794
|
/**
|
|
723
795
|
* The variables UI model.
|
|
724
796
|
*/
|
package/lib/tokens.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAM3D,OAAO,EAAsB,KAAK,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAM3D,OAAO,EAAsB,KAAK,EAAE,MAAM,mBAAmB,CAAC;AA+9B9D;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,KAAK,CAAY,gCAAgC,CAAC,CAAC;AAEhF;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,KAAK,CACtC,sCAAsC,CACvC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,KAAK,CACvC,uCAAuC,CACxC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,KAAK,CACvC,uCAAuC,CACxC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,KAAK,CACvC,uCAAuC,CACxC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/debugger",
|
|
3
|
-
"version": "3.3.0-alpha.
|
|
3
|
+
"version": "3.3.0-alpha.18",
|
|
4
4
|
"description": "JupyterLab - Debugger Extension",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -48,21 +48,21 @@
|
|
|
48
48
|
"watch": "tsc -b --watch"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@jupyterlab/application": "^3.3.0-alpha.
|
|
52
|
-
"@jupyterlab/apputils": "^3.3.0-alpha.
|
|
53
|
-
"@jupyterlab/cells": "^3.3.0-alpha.
|
|
54
|
-
"@jupyterlab/codeeditor": "^3.3.0-alpha.
|
|
55
|
-
"@jupyterlab/codemirror": "^3.3.0-alpha.
|
|
56
|
-
"@jupyterlab/console": "^3.3.0-alpha.
|
|
57
|
-
"@jupyterlab/coreutils": "^5.3.0-alpha.
|
|
58
|
-
"@jupyterlab/docregistry": "^3.3.0-alpha.
|
|
59
|
-
"@jupyterlab/fileeditor": "^3.3.0-alpha.
|
|
60
|
-
"@jupyterlab/notebook": "^3.3.0-alpha.
|
|
61
|
-
"@jupyterlab/observables": "^4.3.0-alpha.
|
|
62
|
-
"@jupyterlab/rendermime": "^3.3.0-alpha.
|
|
63
|
-
"@jupyterlab/services": "^6.3.0-alpha.
|
|
64
|
-
"@jupyterlab/translation": "^3.3.0-alpha.
|
|
65
|
-
"@jupyterlab/ui-components": "^3.3.0-alpha.
|
|
51
|
+
"@jupyterlab/application": "^3.3.0-alpha.18",
|
|
52
|
+
"@jupyterlab/apputils": "^3.3.0-alpha.18",
|
|
53
|
+
"@jupyterlab/cells": "^3.3.0-alpha.18",
|
|
54
|
+
"@jupyterlab/codeeditor": "^3.3.0-alpha.18",
|
|
55
|
+
"@jupyterlab/codemirror": "^3.3.0-alpha.18",
|
|
56
|
+
"@jupyterlab/console": "^3.3.0-alpha.18",
|
|
57
|
+
"@jupyterlab/coreutils": "^5.3.0-alpha.18",
|
|
58
|
+
"@jupyterlab/docregistry": "^3.3.0-alpha.18",
|
|
59
|
+
"@jupyterlab/fileeditor": "^3.3.0-alpha.18",
|
|
60
|
+
"@jupyterlab/notebook": "^3.3.0-alpha.18",
|
|
61
|
+
"@jupyterlab/observables": "^4.3.0-alpha.18",
|
|
62
|
+
"@jupyterlab/rendermime": "^3.3.0-alpha.18",
|
|
63
|
+
"@jupyterlab/services": "^6.3.0-alpha.18",
|
|
64
|
+
"@jupyterlab/translation": "^3.3.0-alpha.18",
|
|
65
|
+
"@jupyterlab/ui-components": "^3.3.0-alpha.17",
|
|
66
66
|
"@lumino/algorithm": "^1.3.3",
|
|
67
67
|
"@lumino/commands": "^1.12.0",
|
|
68
68
|
"@lumino/coreutils": "^1.5.3",
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
"@lumino/messaging": "^1.4.3",
|
|
72
72
|
"@lumino/signaling": "^1.4.3",
|
|
73
73
|
"@lumino/widgets": "^1.19.0",
|
|
74
|
+
"@vscode/debugprotocol": "^1.51.0",
|
|
74
75
|
"codemirror": "~5.61.0",
|
|
75
|
-
"react": "^17.0.1"
|
|
76
|
-
"vscode-debugprotocol": "^1.37.0"
|
|
76
|
+
"react": "^17.0.1"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@babel/core": "^7.10.2",
|
|
80
80
|
"@babel/preset-env": "^7.10.2",
|
|
81
|
-
"@jupyterlab/testutils": "^3.3.0-alpha.
|
|
81
|
+
"@jupyterlab/testutils": "^3.3.0-alpha.18",
|
|
82
82
|
"@types/codemirror": "^0.0.109",
|
|
83
83
|
"@types/jest": "^26.0.10",
|
|
84
84
|
"@types/react-dom": "^17.0.0",
|
package/style/base.css
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g class="jp-icon3" fill="#616161">
|
|
3
|
+
<path d="M5 2H15L20 7V20C20 20.5304 19.7893 21.0391 19.4142 21.4142C19.0391 21.7893 18.5304 22 18 22H5C4.46957 22 3.96086 21.7893 3.58579 21.4142C3.21071 21.0391 3 20.5304 3 20V14H4V16L8 13L4 10V12H3V4C3 3.46957 3.21071 2.96086 3.58579 2.58579C3.96086 2.21071 4.46957 2 5 2ZM12 18H16V16H12V18ZM12 14H18V12H12V14ZM12 10H18V8H12V10ZM10 14C10.5523 14 11 13.5523 11 13C11 12.4477 10.5523 12 10 12C9.44771 12 9 12.4477 9 13C9 13.5523 9.44771 14 10 14Z"/>
|
|
4
|
+
<path d="M3 12V14H1V13V12H3Z"/>
|
|
5
|
+
</g>
|
|
6
|
+
</svg>
|
package/style/icons.css
CHANGED
|
@@ -14,14 +14,24 @@ button.jp-Button.bp3-button.bp3-minimal.jp-TreeView.jp-TableView {
|
|
|
14
14
|
|
|
15
15
|
button.jp-Button.bp3-button.bp3-minimal.jp-TreeView:hover {
|
|
16
16
|
cursor: pointer;
|
|
17
|
-
background-color: var(--jp-layout-
|
|
17
|
+
background-color: var(--jp-layout-color1);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
button.jp-Button.bp3-button.bp3-minimal.jp-TableView:hover {
|
|
21
21
|
cursor: pointer;
|
|
22
|
-
background-color: var(--jp-layout-
|
|
22
|
+
background-color: var(--jp-layout-color1);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.jp-ViewModeSelected {
|
|
26
|
-
background-color: var(--jp-layout-
|
|
26
|
+
background-color: var(--jp-layout-color1);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Pause on exceptions */
|
|
30
|
+
button.jp-Button.jp-mod-minimal.jp-PauseOnExceptions:hover {
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
background-color: var(--jp-layout-color1);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
button.jp-Button.jp-PauseOnExceptions.lm-mod-toggled {
|
|
36
|
+
background-color: var(--jp-layout-color1);
|
|
27
37
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*-----------------------------------------------------------------------------
|
|
2
|
+
| Copyright (c) Jupyter Development Team.
|
|
3
|
+
| Distributed under the terms of the Modified BSD License.
|
|
4
|
+
|----------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
.jp-DebuggerKernelSources {
|
|
7
|
+
min-height: 50px;
|
|
8
|
+
margin-top: 3px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-jp-debugger='true'].jp-Editor .jp-mod-readOnly {
|
|
12
|
+
background: var(--jp-layout-color2);
|
|
13
|
+
height: 100%;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.jp-DebuggerKernelSources-body [data-jp-debugger='true'].jp-Editor {
|
|
17
|
+
height: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.jp-DebuggerKernelSources-body {
|
|
21
|
+
height: 100%;
|
|
22
|
+
overflow-y: auto;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.jp-DebuggerKernelSources-header > div > span {
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
text-overflow: ellipsis;
|
|
29
|
+
white-space: nowrap;
|
|
30
|
+
font-size: var(--jp-ui-font-size0);
|
|
31
|
+
color: var(--jp-ui-font-color1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.jp-DebuggerKernelSource-filterBox {
|
|
35
|
+
padding: 0px;
|
|
36
|
+
flex: 0 0 auto;
|
|
37
|
+
margin: 0px 0px 0px 0px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.jp-DebuggerKernelSource-filterBox-hidden {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|