@jupyterlab/debugger 4.0.0-alpha.8 → 4.0.0-beta.0
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 +3 -1
- package/lib/debugger.js +5 -3
- package/lib/debugger.js.map +1 -1
- package/lib/dialogs/evaluate.d.ts +5 -0
- package/lib/dialogs/evaluate.js +16 -6
- package/lib/dialogs/evaluate.js.map +1 -1
- package/lib/factory.d.ts +1 -1
- package/lib/factory.js +15 -9
- package/lib/factory.js.map +1 -1
- package/lib/handler.js +15 -7
- package/lib/handler.js.map +1 -1
- package/lib/handlers/console.js +9 -3
- package/lib/handlers/console.js.map +1 -1
- package/lib/handlers/editor.d.ts +26 -12
- package/lib/handlers/editor.js +166 -89
- package/lib/handlers/editor.js.map +1 -1
- package/lib/handlers/file.js +6 -2
- package/lib/handlers/file.js.map +1 -1
- package/lib/handlers/notebook.d.ts +0 -7
- package/lib/handlers/notebook.js +11 -17
- package/lib/handlers/notebook.js.map +1 -1
- package/lib/icons.d.ts +2 -1
- package/lib/icons.js +6 -1
- package/lib/icons.js.map +1 -1
- package/lib/model.js +1 -0
- package/lib/model.js.map +1 -1
- package/lib/panels/breakpoints/index.d.ts +2 -2
- package/lib/panels/breakpoints/index.js +9 -7
- package/lib/panels/breakpoints/index.js.map +1 -1
- package/lib/panels/breakpoints/pauseonexceptions.d.ts +53 -0
- package/lib/panels/breakpoints/pauseonexceptions.js +98 -0
- package/lib/panels/breakpoints/pauseonexceptions.js.map +1 -0
- package/lib/panels/callstack/index.d.ts +1 -1
- package/lib/panels/kernelSources/body.d.ts +5 -7
- package/lib/panels/kernelSources/body.js +37 -47
- package/lib/panels/kernelSources/body.js.map +1 -1
- package/lib/panels/kernelSources/filter.d.ts +1 -2
- package/lib/panels/kernelSources/filter.js +2 -2
- package/lib/panels/kernelSources/filter.js.map +1 -1
- package/lib/panels/kernelSources/index.js +1 -1
- package/lib/panels/kernelSources/index.js.map +1 -1
- package/lib/panels/kernelSources/model.d.ts +10 -1
- package/lib/panels/kernelSources/model.js +19 -1
- package/lib/panels/kernelSources/model.js.map +1 -1
- package/lib/panels/sources/body.js +5 -3
- package/lib/panels/sources/body.js.map +1 -1
- package/lib/panels/variables/grid.d.ts +10 -0
- package/lib/panels/variables/grid.js +28 -351
- package/lib/panels/variables/grid.js.map +1 -1
- package/lib/panels/variables/gridpanel.d.ts +140 -0
- package/lib/panels/variables/gridpanel.js +363 -0
- package/lib/panels/variables/gridpanel.js.map +1 -0
- package/lib/panels/variables/mimerenderer.js +9 -1
- package/lib/panels/variables/mimerenderer.js.map +1 -1
- package/lib/panels/variables/scope.js +4 -0
- package/lib/panels/variables/scope.js.map +1 -1
- package/lib/panels/variables/tree.d.ts +1 -0
- package/lib/panels/variables/tree.js +136 -47
- package/lib/panels/variables/tree.js.map +1 -1
- package/lib/service.d.ts +20 -6
- package/lib/service.js +84 -59
- package/lib/service.js.map +1 -1
- package/lib/session.d.ts +20 -6
- package/lib/session.js +59 -11
- package/lib/session.js.map +1 -1
- package/lib/sidebar.js +1 -1
- package/lib/sources.d.ts +2 -2
- package/lib/sources.js +32 -17
- package/lib/sources.js.map +1 -1
- package/lib/tokens.d.ts +57 -13
- package/lib/tokens.js.map +1 -1
- package/package.json +39 -47
- package/src/config.ts +78 -0
- package/src/debugger.ts +154 -0
- package/src/dialogs/evaluate.ts +144 -0
- package/src/factory.ts +72 -0
- package/src/handler.ts +528 -0
- package/src/handlers/console.ts +118 -0
- package/src/handlers/editor.ts +469 -0
- package/src/handlers/file.ts +86 -0
- package/src/handlers/notebook.ts +128 -0
- package/src/hash.ts +69 -0
- package/src/icons.ts +64 -0
- package/src/index.ts +16 -0
- package/src/model.ts +155 -0
- package/src/panels/breakpoints/body.tsx +145 -0
- package/src/panels/breakpoints/index.ts +116 -0
- package/src/panels/breakpoints/model.ts +74 -0
- package/src/panels/breakpoints/pauseonexceptions.tsx +141 -0
- package/src/panels/callstack/body.tsx +96 -0
- package/src/panels/callstack/index.ts +152 -0
- package/src/panels/callstack/model.ts +86 -0
- package/src/panels/kernelSources/body.tsx +139 -0
- package/src/panels/kernelSources/filter.tsx +44 -0
- package/src/panels/kernelSources/index.tsx +106 -0
- package/src/panels/kernelSources/model.ts +160 -0
- package/src/panels/sources/body.ts +161 -0
- package/src/panels/sources/index.tsx +85 -0
- package/src/panels/sources/model.ts +94 -0
- package/src/panels/sources/sourcepath.tsx +28 -0
- package/src/panels/variables/grid.ts +144 -0
- package/src/panels/variables/gridpanel.ts +455 -0
- package/src/panels/variables/index.ts +199 -0
- package/src/panels/variables/mimerenderer.ts +125 -0
- package/src/panels/variables/model.ts +61 -0
- package/src/panels/variables/scope.tsx +132 -0
- package/src/panels/variables/tree.tsx +521 -0
- package/src/service.ts +1009 -0
- package/src/session.ts +342 -0
- package/src/sidebar.ts +194 -0
- package/src/sources.ts +327 -0
- package/src/svg.d.ts +9 -0
- package/src/tokens.ts +1071 -0
- package/style/breakpoints.css +21 -12
- package/style/icons/exceptions.svg +10 -0
- package/style/index.css +1 -1
- package/style/index.js +1 -1
- package/style/kernelSources.css +3 -0
- package/style/variables.css +68 -21
package/style/breakpoints.css
CHANGED
|
@@ -55,25 +55,34 @@
|
|
|
55
55
|
margin-left: auto;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
[data-jp-debugger='true'] .
|
|
58
|
+
[data-jp-debugger='true'] .cm-breakpoint-gutter .cm-gutterElement:empty::after {
|
|
59
59
|
content: '●';
|
|
60
60
|
color: var(--jp-error-color1);
|
|
61
61
|
opacity: 0;
|
|
62
|
-
position: absolute;
|
|
63
|
-
left: 3px;
|
|
64
|
-
top: -1px;
|
|
65
62
|
}
|
|
66
63
|
|
|
67
|
-
|
|
64
|
+
.cm-gutter {
|
|
65
|
+
cursor: default;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.cm-breakpoint-gutter .cm-gutterElement {
|
|
69
|
+
color: var(--jp-error-color1);
|
|
70
|
+
padding-left: 5px;
|
|
71
|
+
font-size: 20px;
|
|
72
|
+
position: relative;
|
|
73
|
+
top: -5px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
[data-jp-debugger='true'].jp-Editor
|
|
77
|
+
.cm-breakpoint-gutter
|
|
78
|
+
.cm-gutterElement:empty:hover::after,
|
|
68
79
|
[data-jp-debugger='true']
|
|
69
80
|
.jp-Notebook
|
|
70
81
|
.jp-CodeCell.jp-mod-selected
|
|
71
|
-
.
|
|
72
|
-
[data-jp-debugger='true']
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
[data-jp-debugger='true'].jp-DebuggerEditors
|
|
77
|
-
.CodeMirror-gutter-wrapper:hover::after {
|
|
82
|
+
.cm-breakpoint-gutter:empty:hover::after,
|
|
83
|
+
[data-jp-debugger='true']
|
|
84
|
+
.jp-Editor
|
|
85
|
+
.cm-breakpoint-gutter
|
|
86
|
+
.cm-gutterElement:empty:hover::after {
|
|
78
87
|
opacity: 0.5;
|
|
79
88
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg height="24" width="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g class="jp-icon3" fill="#616161" transform="matrix(1.1999396,0,0,1.3858273,-2.3726971,-4.6347192)">
|
|
3
|
+
<path
|
|
4
|
+
d="M 12.023438,0.30859375 11.158203,1.8085937 -1.2382812,23.285156 l 26.5292972,-0.002 z m 0.002,3.99999995 9.800781,16.9746093 -19.6015626,0.002 z"
|
|
5
|
+
transform="matrix(0.72509832,0,0,0.7247701,3.2918397,3.480876)"
|
|
6
|
+
/>
|
|
7
|
+
<path d="m 11.144475,9.117095 h 1.666751 v 7.215906 h -1.666751 z" />
|
|
8
|
+
<path d="m 11.144475,17.054592 h 1.666751 v 1.443181 h -1.666751 z" />
|
|
9
|
+
</g>
|
|
10
|
+
</svg>
|
package/style/index.css
CHANGED
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
@import url('~@jupyterlab/ui-components/style/index.css');
|
|
9
9
|
@import url('~@jupyterlab/apputils/style/index.css');
|
|
10
10
|
@import url('~@jupyterlab/codeeditor/style/index.css');
|
|
11
|
-
@import url('~@jupyterlab/codemirror/style/index.css');
|
|
12
11
|
@import url('~@jupyterlab/rendermime/style/index.css');
|
|
13
12
|
@import url('~@jupyterlab/docregistry/style/index.css');
|
|
14
13
|
@import url('~@jupyterlab/application/style/index.css');
|
|
14
|
+
@import url('~@jupyterlab/codemirror/style/index.css');
|
|
15
15
|
@import url('~@jupyterlab/cells/style/index.css');
|
|
16
16
|
@import url('~@jupyterlab/console/style/index.css');
|
|
17
17
|
@import url('~@jupyterlab/fileeditor/style/index.css');
|
package/style/index.js
CHANGED
|
@@ -8,10 +8,10 @@ import '@lumino/widgets/style/index.js';
|
|
|
8
8
|
import '@jupyterlab/ui-components/style/index.js';
|
|
9
9
|
import '@jupyterlab/apputils/style/index.js';
|
|
10
10
|
import '@jupyterlab/codeeditor/style/index.js';
|
|
11
|
-
import '@jupyterlab/codemirror/style/index.js';
|
|
12
11
|
import '@jupyterlab/rendermime/style/index.js';
|
|
13
12
|
import '@jupyterlab/docregistry/style/index.js';
|
|
14
13
|
import '@jupyterlab/application/style/index.js';
|
|
14
|
+
import '@jupyterlab/codemirror/style/index.js';
|
|
15
15
|
import '@jupyterlab/cells/style/index.js';
|
|
16
16
|
import '@jupyterlab/console/style/index.js';
|
|
17
17
|
import '@jupyterlab/fileeditor/style/index.js';
|
package/style/kernelSources.css
CHANGED
package/style/variables.css
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
| Copyright (c) Jupyter Development Team.
|
|
3
3
|
| Distributed under the terms of the Modified BSD License.
|
|
4
4
|
|----------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
5
|
.jp-DebuggerVariables {
|
|
7
6
|
display: flex;
|
|
8
7
|
flex-direction: column;
|
|
@@ -16,57 +15,96 @@
|
|
|
16
15
|
flex: 1 1 auto;
|
|
17
16
|
min-height: 24px;
|
|
18
17
|
overflow: auto;
|
|
18
|
+
|
|
19
|
+
/* For absolute positioning of jp-DebuggerVariables-buttons. */
|
|
20
|
+
position: relative;
|
|
19
21
|
}
|
|
20
22
|
|
|
21
|
-
.jp-DebuggerVariables-
|
|
23
|
+
.jp-DebuggerVariables-branch {
|
|
22
24
|
list-style: none;
|
|
23
25
|
margin: 0;
|
|
24
26
|
padding: 0;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
.jp-DebuggerVariables-body
|
|
29
|
+
.jp-DebuggerVariables-body
|
|
30
|
+
.jp-DebuggerVariables-branch
|
|
31
|
+
.jp-DebuggerVariables-branch {
|
|
32
|
+
grid-area: nested;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.jp-DebuggerVariables-body > .jp-DebuggerVariables-branch {
|
|
28
36
|
padding-top: 0.1em;
|
|
29
37
|
}
|
|
30
38
|
|
|
31
|
-
.jp-DebuggerVariables-
|
|
32
|
-
padding:
|
|
39
|
+
.jp-DebuggerVariables-branch li {
|
|
40
|
+
padding: 3px 0;
|
|
33
41
|
cursor: pointer;
|
|
34
42
|
color: var(--jp-content-font-color1);
|
|
35
|
-
display:
|
|
36
|
-
|
|
43
|
+
display: grid;
|
|
44
|
+
grid-template:
|
|
45
|
+
'collapser name detail'
|
|
46
|
+
'nested nested nested';
|
|
47
|
+
grid-template-columns: max-content max-content 1fr;
|
|
37
48
|
}
|
|
38
49
|
|
|
39
|
-
.jp-DebuggerVariables-
|
|
40
|
-
|
|
50
|
+
.jp-DebuggerVariables-branch li:not(:has(li:hover)):hover {
|
|
51
|
+
background: var(--jp-layout-color2);
|
|
41
52
|
}
|
|
42
53
|
|
|
43
|
-
.jp-DebuggerVariables-
|
|
44
|
-
|
|
54
|
+
.jp-DebuggerVariables-collapser {
|
|
55
|
+
width: 16px;
|
|
56
|
+
grid-area: collapser;
|
|
57
|
+
transform: rotate(-90deg);
|
|
58
|
+
transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
45
59
|
}
|
|
46
60
|
|
|
47
|
-
.jp-DebuggerVariables-
|
|
48
|
-
|
|
61
|
+
.jp-DebuggerVariables-collapser.jp-mod-expanded {
|
|
62
|
+
transform: rotate(0);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.jp-DebuggerVariables-buttons {
|
|
66
|
+
position: absolute;
|
|
67
|
+
top: 0;
|
|
68
|
+
right: 8px;
|
|
69
|
+
margin-top: 1px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.jp-DebuggerVariables-name {
|
|
73
|
+
color: var(--jp-mirror-editor-attribute-color);
|
|
74
|
+
grid-area: name;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.jp-DebuggerVariables-name::after {
|
|
78
|
+
content: ':';
|
|
79
|
+
margin-right: 5px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.jp-DebuggerVariables-detail {
|
|
83
|
+
/* detail contains value for primitive types or name of the type otherwise */
|
|
84
|
+
color: var(--jp-mirror-editor-string-color);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.jp-DebuggerVariables-renderVariable {
|
|
49
88
|
border: none;
|
|
50
89
|
background: none;
|
|
51
90
|
cursor: pointer;
|
|
52
|
-
|
|
53
|
-
|
|
91
|
+
transform-origin: center center;
|
|
92
|
+
transition: transform 0.2s cubic-bezier(0.4, 0, 1, 1);
|
|
54
93
|
}
|
|
55
94
|
|
|
56
|
-
.jp-DebuggerVariables-
|
|
57
|
-
transform: scale(1.
|
|
58
|
-
overflow: hidden;
|
|
95
|
+
.jp-DebuggerVariables-renderVariable:active {
|
|
96
|
+
transform: scale(1.35);
|
|
59
97
|
}
|
|
60
98
|
|
|
61
|
-
.jp-DebuggerVariables-
|
|
99
|
+
.jp-DebuggerVariables-renderVariable:hover {
|
|
62
100
|
background-color: var(--jp-layout-color2);
|
|
63
101
|
}
|
|
64
102
|
|
|
65
|
-
.jp-DebuggerVariables-
|
|
103
|
+
.jp-DebuggerVariables-renderVariable:disabled {
|
|
66
104
|
cursor: default;
|
|
67
105
|
}
|
|
68
106
|
|
|
69
|
-
.jp-DebuggerVariables-
|
|
107
|
+
.jp-DebuggerVariables-branch li > .jp-DebuggerVariables-branch {
|
|
70
108
|
margin-left: 12px;
|
|
71
109
|
}
|
|
72
110
|
|
|
@@ -115,6 +153,15 @@
|
|
|
115
153
|
color: var(--jp-content-font-color0);
|
|
116
154
|
}
|
|
117
155
|
|
|
156
|
+
.jp-VariableRendererPanel {
|
|
157
|
+
overflow: auto;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.jp-VariableRendererPanel-renderer {
|
|
161
|
+
overflow: auto;
|
|
162
|
+
height: 100%;
|
|
163
|
+
}
|
|
164
|
+
|
|
118
165
|
.jp-VariableRenderer-TrustButton[aria-pressed='true'] {
|
|
119
166
|
box-shadow: inset 0 var(--jp-border-width) 4px
|
|
120
167
|
rgba(
|