@theia/debug 1.53.0-next.55 → 1.53.0-next.64
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/README.md +62 -62
- package/lib/browser/debug-configuration-manager.js +6 -6
- package/lib/common/inline-debug-adapter.d.ts +0 -1
- package/lib/common/inline-debug-adapter.d.ts.map +1 -1
- package/package.json +15 -15
- package/src/browser/breakpoint/breakpoint-manager.ts +369 -369
- package/src/browser/breakpoint/breakpoint-marker.ts +104 -104
- package/src/browser/console/debug-console-contribution.tsx +240 -240
- package/src/browser/console/debug-console-items.tsx +384 -384
- package/src/browser/console/debug-console-session.ts +205 -205
- package/src/browser/debug-call-stack-item-type-key.ts +20 -20
- package/src/browser/debug-configuration-manager.ts +591 -591
- package/src/browser/debug-configuration-model.ts +100 -100
- package/src/browser/debug-contribution.ts +43 -43
- package/src/browser/debug-frontend-application-contribution.ts +1551 -1551
- package/src/browser/debug-frontend-module.ts +133 -133
- package/src/browser/debug-package.spec.ts +20 -20
- package/src/browser/debug-preferences.ts +98 -98
- package/src/browser/debug-prefix-configuration.ts +195 -195
- package/src/browser/debug-resource.ts +59 -59
- package/src/browser/debug-schema-updater.ts +149 -149
- package/src/browser/debug-session-connection.ts +357 -357
- package/src/browser/debug-session-contribution.ts +157 -157
- package/src/browser/debug-session-manager.ts +683 -683
- package/src/browser/debug-session-options.ts +120 -120
- package/src/browser/debug-session.tsx +974 -974
- package/src/browser/debug-tab-bar-decorator.ts +57 -57
- package/src/browser/debug-watch-manager.ts +93 -93
- package/src/browser/disassembly-view/disassembly-view-accessibility-provider.ts +43 -43
- package/src/browser/disassembly-view/disassembly-view-breakpoint-renderer.ts +119 -119
- package/src/browser/disassembly-view/disassembly-view-contribution.ts +109 -109
- package/src/browser/disassembly-view/disassembly-view-instruction-renderer.ts +245 -245
- package/src/browser/disassembly-view/disassembly-view-table-delegate.ts +39 -39
- package/src/browser/disassembly-view/disassembly-view-utilities.ts +55 -55
- package/src/browser/disassembly-view/disassembly-view-widget.ts +463 -463
- package/src/browser/editor/debug-breakpoint-widget.tsx +293 -293
- package/src/browser/editor/debug-editor-model.ts +529 -529
- package/src/browser/editor/debug-editor-service.ts +192 -192
- package/src/browser/editor/debug-editor.ts +20 -20
- package/src/browser/editor/debug-exception-widget.tsx +122 -122
- package/src/browser/editor/debug-expression-provider.ts +78 -78
- package/src/browser/editor/debug-hover-source.tsx +105 -105
- package/src/browser/editor/debug-hover-widget.ts +298 -298
- package/src/browser/editor/debug-inline-value-decorator.ts +373 -373
- package/src/browser/model/debug-breakpoint.tsx +151 -151
- package/src/browser/model/debug-function-breakpoint.tsx +101 -101
- package/src/browser/model/debug-instruction-breakpoint.tsx +68 -68
- package/src/browser/model/debug-source-breakpoint.tsx +237 -237
- package/src/browser/model/debug-source.ts +93 -93
- package/src/browser/model/debug-stack-frame.tsx +177 -177
- package/src/browser/model/debug-thread.tsx +292 -292
- package/src/browser/preferences/launch-preferences.ts +38 -38
- package/src/browser/style/index.css +453 -453
- package/src/browser/view/debug-action.tsx +57 -57
- package/src/browser/view/debug-breakpoints-source.tsx +53 -53
- package/src/browser/view/debug-breakpoints-widget.ts +71 -71
- package/src/browser/view/debug-configuration-select.tsx +269 -269
- package/src/browser/view/debug-configuration-widget.tsx +121 -121
- package/src/browser/view/debug-exception-breakpoint.tsx +68 -68
- package/src/browser/view/debug-session-widget.ts +124 -124
- package/src/browser/view/debug-stack-frames-source.tsx +75 -75
- package/src/browser/view/debug-stack-frames-widget.ts +135 -135
- package/src/browser/view/debug-threads-source.tsx +48 -48
- package/src/browser/view/debug-threads-widget.ts +126 -126
- package/src/browser/view/debug-toolbar-widget.tsx +145 -145
- package/src/browser/view/debug-variables-source.ts +43 -43
- package/src/browser/view/debug-variables-widget.ts +61 -61
- package/src/browser/view/debug-view-model.ts +230 -230
- package/src/browser/view/debug-watch-expression.tsx +88 -88
- package/src/browser/view/debug-watch-source.ts +41 -41
- package/src/browser/view/debug-watch-widget.ts +61 -61
- package/src/browser/view/debug-widget.ts +97 -97
- package/src/common/debug-adapter-contribution-registry.ts +206 -206
- package/src/common/debug-adapter-session.ts +102 -102
- package/src/common/debug-common.ts +19 -19
- package/src/common/debug-compound.ts +33 -33
- package/src/common/debug-configuration.ts +112 -112
- package/src/common/debug-model.ts +200 -200
- package/src/common/debug-service.ts +184 -184
- package/src/common/debug-uri-utils.ts +24 -24
- package/src/common/inline-debug-adapter.ts +47 -47
- package/src/node/debug-adapter-factory.ts +107 -107
- package/src/node/debug-adapter-session-manager.ts +106 -106
- package/src/node/debug-backend-module.ts +57 -57
- package/src/node/debug-service-impl.ts +119 -119
- package/src/node/stream-debug-adapter.ts +126 -126
package/README.md
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
<div align='center'>
|
|
2
|
-
|
|
3
|
-
<br />
|
|
4
|
-
|
|
5
|
-
<img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
|
|
6
|
-
|
|
7
|
-
<h2>ECLIPSE THEIA - DEBUG EXTENSION</h2>
|
|
8
|
-
|
|
9
|
-
<hr />
|
|
10
|
-
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
## Architecture
|
|
14
|
-
|
|
15
|
-
`DebugService` is used to initialize a new `DebugSession`. This service provides functionality to configure and to start a new debug session. The workflow is the following. If user wants to debug an application and there is no debug configuration associated with the application then the list of available debuggers is requested to create a suitable debug configuration. When configuration is chosen it is possible to alter the configuration by filling in missing values or by adding/changing/removing attributes.
|
|
16
|
-
|
|
17
|
-
In most cases the default behavior of the `DebugSession` is enough. But it is possible to provide its own implementation. The `DebugSessionFactory` is used for this purpose via `DebugSessionContribution`. Documented model objects are located [here](https://github.com/eclipse-theia/theia/tree/master/packages/debug/src/browser/debug-model.ts)
|
|
18
|
-
|
|
19
|
-
### Debug Session life-cycle API
|
|
20
|
-
|
|
21
|
-
`DebugSession` life-cycle is controlled and can be tracked as follows:
|
|
22
|
-
* An `onDidPreCreateDebugSession` event indicates that a debug session is going to be created.
|
|
23
|
-
* An `onDidCreateDebugSession` event indicates that a debug session has been created.
|
|
24
|
-
* An `onDidDestroyDebugSession` event indicates that a debug session has terminated.
|
|
25
|
-
* An `onDidChangeActiveDebugSession` event indicates that an active debug session has been changed
|
|
26
|
-
|
|
27
|
-
### Breakpoints API
|
|
28
|
-
|
|
29
|
-
`ExtDebugProtocol.AggregatedBreakpoint` is used to handle breakpoints on the client side. It covers all three breakpoint types: `DebugProtocol.SourceBreakpoint`, `DebugProtocol.FunctionBreakpoint` and `ExtDebugProtocol.ExceptionBreakpoint`. It is possible to identify a breakpoint type with help of `DebugUtils`. Notification about added, removed, or changed breakpoints is received via `onDidChangeBreakpoints`.
|
|
30
|
-
|
|
31
|
-
### Server side
|
|
32
|
-
|
|
33
|
-
At the back-end we start a debug adapter using `DebugAdapterFactory` and then a `DebugAdapterSession` is instantiated which works as a proxy between client and debug adapter. If a default implementation of the debug adapter session does not fit needs, it is possible to provide its own implementation using `DebugAdapterSessionFactory`. If so, it is recommended to extend the default implementation of the `DebugAdapterSession`. Documented model objects are located [here](https://github.com/eclipse-theia/theia/tree/master/packages/debug/src/node/debug-model.ts)
|
|
34
|
-
|
|
35
|
-
`DebugSessionState` accumulates debug adapter events and is used to restore debug session on the client side when page is refreshed.
|
|
36
|
-
|
|
37
|
-
## How to contribute a new debugger
|
|
38
|
-
|
|
39
|
-
`DebugAdapterContribution` is a contribution point for all debug adapters to provide and resolve debug configuration.
|
|
40
|
-
|
|
41
|
-
## Additional Information
|
|
42
|
-
|
|
43
|
-
- [API documentation for `@theia/debug`](https://eclipse-theia.github.io/theia/docs/next/modules/debug.html)
|
|
44
|
-
- [Theia - GitHub](https://github.com/eclipse-theia/theia)
|
|
45
|
-
- [Theia - Website](https://theia-ide.org/)
|
|
46
|
-
- [Debug Adapter Protocol](https://github.com/Microsoft/vscode-debugadapter-node/blob/master/protocol/src/debugProtocol.ts)
|
|
47
|
-
- [VS Code debug API](https://code.visualstudio.com/docs/extensionAPI/api-debugging)
|
|
48
|
-
- [Debug adapter example for VS Code](https://code.visualstudio.com/docs/extensions/example-debuggers)
|
|
49
|
-
|
|
50
|
-
## Debug adapter implementations for VS Code
|
|
51
|
-
* [Node Debugger](https://github.com/microsoft/vscode-node-debug)
|
|
52
|
-
* [Node Debugger 2](https://github.com/microsoft/vscode-node-debug2)
|
|
53
|
-
* [Java Debugger](https://github.com/Microsoft/vscode-java-debug)
|
|
54
|
-
|
|
55
|
-
## License
|
|
56
|
-
|
|
57
|
-
- [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
|
|
58
|
-
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
59
|
-
|
|
60
|
-
## Trademark
|
|
61
|
-
"Theia" is a trademark of the Eclipse Foundation
|
|
62
|
-
https://www.eclipse.org/theia
|
|
1
|
+
<div align='center'>
|
|
2
|
+
|
|
3
|
+
<br />
|
|
4
|
+
|
|
5
|
+
<img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
|
|
6
|
+
|
|
7
|
+
<h2>ECLIPSE THEIA - DEBUG EXTENSION</h2>
|
|
8
|
+
|
|
9
|
+
<hr />
|
|
10
|
+
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
## Architecture
|
|
14
|
+
|
|
15
|
+
`DebugService` is used to initialize a new `DebugSession`. This service provides functionality to configure and to start a new debug session. The workflow is the following. If user wants to debug an application and there is no debug configuration associated with the application then the list of available debuggers is requested to create a suitable debug configuration. When configuration is chosen it is possible to alter the configuration by filling in missing values or by adding/changing/removing attributes.
|
|
16
|
+
|
|
17
|
+
In most cases the default behavior of the `DebugSession` is enough. But it is possible to provide its own implementation. The `DebugSessionFactory` is used for this purpose via `DebugSessionContribution`. Documented model objects are located [here](https://github.com/eclipse-theia/theia/tree/master/packages/debug/src/browser/debug-model.ts)
|
|
18
|
+
|
|
19
|
+
### Debug Session life-cycle API
|
|
20
|
+
|
|
21
|
+
`DebugSession` life-cycle is controlled and can be tracked as follows:
|
|
22
|
+
* An `onDidPreCreateDebugSession` event indicates that a debug session is going to be created.
|
|
23
|
+
* An `onDidCreateDebugSession` event indicates that a debug session has been created.
|
|
24
|
+
* An `onDidDestroyDebugSession` event indicates that a debug session has terminated.
|
|
25
|
+
* An `onDidChangeActiveDebugSession` event indicates that an active debug session has been changed
|
|
26
|
+
|
|
27
|
+
### Breakpoints API
|
|
28
|
+
|
|
29
|
+
`ExtDebugProtocol.AggregatedBreakpoint` is used to handle breakpoints on the client side. It covers all three breakpoint types: `DebugProtocol.SourceBreakpoint`, `DebugProtocol.FunctionBreakpoint` and `ExtDebugProtocol.ExceptionBreakpoint`. It is possible to identify a breakpoint type with help of `DebugUtils`. Notification about added, removed, or changed breakpoints is received via `onDidChangeBreakpoints`.
|
|
30
|
+
|
|
31
|
+
### Server side
|
|
32
|
+
|
|
33
|
+
At the back-end we start a debug adapter using `DebugAdapterFactory` and then a `DebugAdapterSession` is instantiated which works as a proxy between client and debug adapter. If a default implementation of the debug adapter session does not fit needs, it is possible to provide its own implementation using `DebugAdapterSessionFactory`. If so, it is recommended to extend the default implementation of the `DebugAdapterSession`. Documented model objects are located [here](https://github.com/eclipse-theia/theia/tree/master/packages/debug/src/node/debug-model.ts)
|
|
34
|
+
|
|
35
|
+
`DebugSessionState` accumulates debug adapter events and is used to restore debug session on the client side when page is refreshed.
|
|
36
|
+
|
|
37
|
+
## How to contribute a new debugger
|
|
38
|
+
|
|
39
|
+
`DebugAdapterContribution` is a contribution point for all debug adapters to provide and resolve debug configuration.
|
|
40
|
+
|
|
41
|
+
## Additional Information
|
|
42
|
+
|
|
43
|
+
- [API documentation for `@theia/debug`](https://eclipse-theia.github.io/theia/docs/next/modules/debug.html)
|
|
44
|
+
- [Theia - GitHub](https://github.com/eclipse-theia/theia)
|
|
45
|
+
- [Theia - Website](https://theia-ide.org/)
|
|
46
|
+
- [Debug Adapter Protocol](https://github.com/Microsoft/vscode-debugadapter-node/blob/master/protocol/src/debugProtocol.ts)
|
|
47
|
+
- [VS Code debug API](https://code.visualstudio.com/docs/extensionAPI/api-debugging)
|
|
48
|
+
- [Debug adapter example for VS Code](https://code.visualstudio.com/docs/extensions/example-debuggers)
|
|
49
|
+
|
|
50
|
+
## Debug adapter implementations for VS Code
|
|
51
|
+
* [Node Debugger](https://github.com/microsoft/vscode-node-debug)
|
|
52
|
+
* [Node Debugger 2](https://github.com/microsoft/vscode-node-debug2)
|
|
53
|
+
* [Java Debugger](https://github.com/Microsoft/vscode-java-debug)
|
|
54
|
+
|
|
55
|
+
## License
|
|
56
|
+
|
|
57
|
+
- [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
|
|
58
|
+
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
59
|
+
|
|
60
|
+
## Trademark
|
|
61
|
+
"Theia" is a trademark of the Eclipse Foundation
|
|
62
|
+
https://www.eclipse.org/theia
|
|
@@ -424,12 +424,12 @@ let DebugConfigurationManager = class DebugConfigurationManager {
|
|
|
424
424
|
await event_1.WaitUntilEvent.fire(this.onWillProvideDynamicDebugConfigurationEmitter, {});
|
|
425
425
|
}
|
|
426
426
|
getInitialConfigurationContent(initialConfigurations) {
|
|
427
|
-
return `{
|
|
428
|
-
// Use IntelliSense to learn about possible attributes.
|
|
429
|
-
// Hover to view descriptions of existing attributes.
|
|
430
|
-
"version": "0.2.0",
|
|
431
|
-
"configurations": ${JSON.stringify(initialConfigurations, undefined, ' ').split('\n').map(line => ' ' + line).join('\n').trim()}
|
|
432
|
-
}
|
|
427
|
+
return `{
|
|
428
|
+
// Use IntelliSense to learn about possible attributes.
|
|
429
|
+
// Hover to view descriptions of existing attributes.
|
|
430
|
+
"version": "0.2.0",
|
|
431
|
+
"configurations": ${JSON.stringify(initialConfigurations, undefined, ' ').split('\n').map(line => ' ' + line).join('\n').trim()}
|
|
432
|
+
}
|
|
433
433
|
`;
|
|
434
434
|
}
|
|
435
435
|
async selectDebugType() {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
/// <reference types="@theia/plugin/src/theia.proposed.notebookKernelSource" />
|
|
5
5
|
/// <reference types="@theia/plugin/src/theia.proposed.notebookMessaging" />
|
|
6
6
|
/// <reference types="@theia/plugin/src/theia.proposed.portsAttributes" />
|
|
7
|
-
/// <reference types="@theia/plugin/src/theia.proposed.terminalShellIntegration" />
|
|
8
7
|
/// <reference types="@theia/plugin/src/theia-extra" />
|
|
9
8
|
/// <reference types="@theia/plugin/src/theia.proposed.canonicalUriProvider" />
|
|
10
9
|
/// <reference types="@theia/plugin/src/theia.proposed.customEditorMove" />
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-debug-adapter.d.ts","sourceRoot":"","sources":["../../src/common/inline-debug-adapter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"inline-debug-adapter.d.ts","sourceRoot":"","sources":["../../src/common/inline-debug-adapter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAgBA,OAAO,EAAW,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC;AAEvC;;GAEG;AACH,qBAAa,kBAAmB,YAAW,YAAY;IAOvC,OAAO,CAAC,YAAY;IANhC,OAAO,CAAC,sBAAsB,CAAyB;IACvD,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAqC;IACrE,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAc;IACnC,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,CAA2B;gBAE3B,YAAY,EAAE,KAAK,CAAC,YAAY;IAM9C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAG5B,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG9B"}
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/debug",
|
|
3
|
-
"version": "1.53.0-next.
|
|
3
|
+
"version": "1.53.0-next.64+23b351d26",
|
|
4
4
|
"description": "Theia - Debug Extension",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/console": "1.53.0-next.
|
|
7
|
-
"@theia/core": "1.53.0-next.
|
|
8
|
-
"@theia/editor": "1.53.0-next.
|
|
9
|
-
"@theia/filesystem": "1.53.0-next.
|
|
10
|
-
"@theia/markers": "1.53.0-next.
|
|
11
|
-
"@theia/monaco": "1.53.0-next.
|
|
6
|
+
"@theia/console": "1.53.0-next.64+23b351d26",
|
|
7
|
+
"@theia/core": "1.53.0-next.64+23b351d26",
|
|
8
|
+
"@theia/editor": "1.53.0-next.64+23b351d26",
|
|
9
|
+
"@theia/filesystem": "1.53.0-next.64+23b351d26",
|
|
10
|
+
"@theia/markers": "1.53.0-next.64+23b351d26",
|
|
11
|
+
"@theia/monaco": "1.53.0-next.64+23b351d26",
|
|
12
12
|
"@theia/monaco-editor-core": "1.83.101",
|
|
13
|
-
"@theia/output": "1.53.0-next.
|
|
14
|
-
"@theia/process": "1.53.0-next.
|
|
15
|
-
"@theia/task": "1.53.0-next.
|
|
16
|
-
"@theia/terminal": "1.53.0-next.
|
|
17
|
-
"@theia/test": "1.53.0-next.
|
|
18
|
-
"@theia/variable-resolver": "1.53.0-next.
|
|
19
|
-
"@theia/workspace": "1.53.0-next.
|
|
13
|
+
"@theia/output": "1.53.0-next.64+23b351d26",
|
|
14
|
+
"@theia/process": "1.53.0-next.64+23b351d26",
|
|
15
|
+
"@theia/task": "1.53.0-next.64+23b351d26",
|
|
16
|
+
"@theia/terminal": "1.53.0-next.64+23b351d26",
|
|
17
|
+
"@theia/test": "1.53.0-next.64+23b351d26",
|
|
18
|
+
"@theia/variable-resolver": "1.53.0-next.64+23b351d26",
|
|
19
|
+
"@theia/workspace": "1.53.0-next.64+23b351d26",
|
|
20
20
|
"@vscode/debugprotocol": "^1.51.0",
|
|
21
21
|
"fast-deep-equal": "^3.1.3",
|
|
22
22
|
"jsonc-parser": "^2.2.0",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"nyc": {
|
|
65
65
|
"extends": "../../configs/nyc.json"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "23b351d26346a2b5d6aca3ee81fba59c056132f7"
|
|
68
68
|
}
|