roku-debug 0.8.7 → 0.9.3
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/CHANGELOG.md +56 -49
- package/dist/CompileErrorProcessor.d.ts +1 -0
- package/dist/CompileErrorProcessor.js +5 -4
- package/dist/CompileErrorProcessor.js.map +1 -1
- package/dist/LaunchConfiguration.d.ts +5 -0
- package/dist/SceneGraphDebugCommandController.d.ts +1 -0
- package/dist/SceneGraphDebugCommandController.js +11 -5
- package/dist/SceneGraphDebugCommandController.js.map +1 -1
- package/dist/adapters/DebugProtocolAdapter.d.ts +3 -7
- package/dist/adapters/DebugProtocolAdapter.js +21 -16
- package/dist/adapters/DebugProtocolAdapter.js.map +1 -1
- package/dist/adapters/TelnetAdapter.d.ts +7 -51
- package/dist/adapters/TelnetAdapter.js +209 -385
- package/dist/adapters/TelnetAdapter.js.map +1 -1
- package/dist/adapters/TelnetRequestPipeline.d.ts +55 -0
- package/dist/adapters/TelnetRequestPipeline.js +250 -0
- package/dist/adapters/TelnetRequestPipeline.js.map +1 -0
- package/dist/debugProtocol/Debugger.d.ts +1 -0
- package/dist/debugProtocol/Debugger.js +20 -19
- package/dist/debugProtocol/Debugger.js.map +1 -1
- package/dist/debugSession/BrightScriptDebugSession.d.ts +6 -0
- package/dist/debugSession/BrightScriptDebugSession.js +83 -36
- package/dist/debugSession/BrightScriptDebugSession.js.map +1 -1
- package/dist/interfaces.d.ts +11 -0
- package/dist/interfaces.js +16 -0
- package/dist/interfaces.js.map +1 -0
- package/dist/logging.d.ts +11 -0
- package/dist/logging.js +14 -0
- package/dist/logging.js.map +1 -0
- package/dist/managers/FileManager.d.ts +1 -0
- package/dist/managers/FileManager.js +3 -1
- package/dist/managers/FileManager.js.map +1 -1
- package/dist/managers/ProjectManager.d.ts +2 -0
- package/dist/managers/ProjectManager.js +5 -2
- package/dist/managers/ProjectManager.js.map +1 -1
- package/dist/managers/SourceMapManager.d.ts +1 -0
- package/dist/managers/SourceMapManager.js +5 -5
- package/dist/managers/SourceMapManager.js.map +1 -1
- package/dist/util.d.ts +19 -12
- package/dist/util.js +41 -40
- package/dist/util.js.map +1 -1
- package/package.json +5 -2
- package/roku-debug-0.9.3.tgz +0 -0
- package/roku-debug-0.8.7.tgz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
## [0.
|
|
9
|
+
## [0.9.3](https://github.com/rokucommunity/roku-debug/compare/v0.9.2...v0.9.3) - 2022-01-28
|
|
10
|
+
### Changed
|
|
11
|
+
- upgrade to [brighterscript@0.43.0](https://github.com/rokucommunity/brighterscript/blob/master/CHANGELOG.md#0430---2022-01-28).
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [0.9.2](https://github.com/rokucommunity/roku-debug/compare/v0.9.1...v0.9.2) - 2022-01-12
|
|
16
|
+
### Fixed
|
|
17
|
+
- bug with telnet debug session related to fire-and-forget commands like `step`, `continue`, etc. This was causing the debug session to stall frequently. ([#64](https://github.com/rokucommunity/roku-debug/pull/64))
|
|
18
|
+
- combine telnet output that was split due to buffer sizes ([#64](https://github.com/rokucommunity/roku-debug/pull/64))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [0.9.1](https://github.com/rokucommunity/roku-debug/compare/v0.9.0...v0.9.1) - 2022-01-05
|
|
23
|
+
### Fixed
|
|
24
|
+
- issue where `"consoleOutput": "full"` shows no output when `enableDebugProtocol === true`. ([#65](https://github.com/rokucommunity/roku-debug/pull/65))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [0.9.0](https://github.com/rokucommunity/roku-debug/compare/v0.8.7...v0.9.0) - 2021-12-17
|
|
29
|
+
### Added
|
|
30
|
+
- use @rokucommunity/logger package for logging. Adds many new log messages at various debug levels. ([#61](https://github.com/rokucommunity/roku-debug/pull/61))
|
|
31
|
+
- add `logLevel` launch configuration variable
|
|
32
|
+
- Ability to inspect node children through the `[[children]]` virtual property ([#57](https://github.com/rokucommunity/roku-debug/pull/57))
|
|
33
|
+
- `[[length]]` virtual property for all variables that support it. ([#57](https://github.com/rokucommunity/roku-debug/pull/57))
|
|
34
|
+
### Fixed
|
|
35
|
+
- Several telnet debugging issues related to the 10.5 Roku OS release. ([#57](https://github.com/rokucommunity/roku-debug/pull/57))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## [0.8.7](https://github.com/rokucommunity/roku-debug/compare/v0.8.6...v0.8.7) - 2021-11-11
|
|
10
40
|
### Changed
|
|
11
41
|
- added lots of logging for help troubleshooting issues in roku-debug. ([#56](https://github.com/rokucommunity/roku-debug/pull/56))
|
|
12
42
|
### Fixed
|
|
@@ -14,7 +44,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
14
44
|
|
|
15
45
|
|
|
16
46
|
|
|
17
|
-
## [0.8.6](https://github.com/rokucommunity/
|
|
47
|
+
## [0.8.6](https://github.com/rokucommunity/roku-debug/compare/v0.8.5...v0.8.6) - 2021-11-04
|
|
18
48
|
### Changed
|
|
19
49
|
- upgrade to [roku-deploy@3.5.2](https://github.com/rokucommunity/roku-deploy/blob/master/CHANGELOG.md#352---2021-11-02) which fixed bugs introduced in roku-deploy v3.5.0.
|
|
20
50
|
### Fixed
|
|
@@ -23,8 +53,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
23
53
|
|
|
24
54
|
|
|
25
55
|
|
|
26
|
-
## [0.8.5
|
|
27
|
-
[0.8.4]: https://github.com/RokuCommunity/roku-debug/compare/v0.8.4...v0.8.5
|
|
56
|
+
## [0.8.7](https://github.com/RokuCommunity/roku-debug/compare/v0.8.4...v0.8.5) - 2021-10-27
|
|
28
57
|
### Changed
|
|
29
58
|
- additional logging to the "BrightScript Debug Server" output panel
|
|
30
59
|
- upgrade to [roku-deploy@3.5.0](https://github.com/rokucommunity/roku-deploy/blob/master/CHANGELOG.md#350---2021-10-27) which adds the ability to use negated non-rootDir top-level
|
|
@@ -35,37 +64,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
35
64
|
|
|
36
65
|
|
|
37
66
|
|
|
38
|
-
## [0.8.4] - 2021-06-01
|
|
39
|
-
[0.8.4]: https://github.com/RokuCommunity/roku-debug/compare/v0.8.3...v0.8.4
|
|
67
|
+
## [0.8.4](https://github.com/RokuCommunity/roku-debug/compare/v0.8.3...v0.8.4) - 2021-06-01
|
|
40
68
|
### Fixed
|
|
41
69
|
- debugger freeze when debugger prompt split across multiple telnet messages ([#35](https://github.com/rokucommunity/roku-debug/pull/35))
|
|
42
70
|
|
|
43
71
|
|
|
44
72
|
|
|
45
|
-
## [0.8.3] - 2021-06-01
|
|
46
|
-
[0.8.3]: https://github.com/RokuCommunity/roku-debug/compare/v0.8.2...v0.8.3
|
|
73
|
+
## [0.8.3](https://github.com/RokuCommunity/roku-debug/compare/v0.8.2...v0.8.3) - 2021-06-01
|
|
47
74
|
### Changed
|
|
48
75
|
- upgraded to [roku-deploy@3.4.1](https://github.com/rokucommunity/roku-deploy/blob/master/CHANGELOG.md#341---2021-06-01) which fixes bugs introduced in roku-deploy@3.4.0
|
|
49
76
|
|
|
50
77
|
|
|
51
78
|
|
|
52
|
-
## [0.8.2] - 2021-05-28
|
|
53
|
-
[0.8.2]: https://github.com/RokuCommunity/roku-debug/compare/v0.8.1...v0.8.2
|
|
79
|
+
## [0.8.2](https://github.com/RokuCommunity/roku-debug/compare/v0.8.1...v0.8.2) - 2021-05-28
|
|
54
80
|
### Changed
|
|
55
81
|
- upgraded to [roku-deploy@3.4.0](https://github.com/rokucommunity/roku-deploy/blob/master/CHANGELOG.md#340---2021-05-28) which brings significant zip speed improvements
|
|
56
82
|
|
|
57
83
|
|
|
58
84
|
|
|
59
|
-
## [0.8.1] - 2021-05-04
|
|
60
|
-
[0.8.1]: https://github.com/RokuCommunity/roku-debug/compare/v0.8.0...v0.8.1
|
|
85
|
+
## [0.8.1](https://github.com/RokuCommunity/roku-debug/compare/v0.8.0...v0.8.1) - 2021-05-04
|
|
61
86
|
### Fixed
|
|
62
87
|
- Fix incorrect sgnodes shell prompt matching string. ([#31](https://github.com/rokucommunity/roku-debug/pull/31))
|
|
63
88
|
- Increase port 8080 commands max buffer size ([#31](https://github.com/rokucommunity/roku-debug/pull/31))
|
|
64
89
|
|
|
65
90
|
|
|
66
91
|
|
|
67
|
-
## [0.8.0] - 2021-05-03
|
|
68
|
-
[0.8.0]: https://github.com/RokuCommunity/roku-debug/compare/v0.7.0...v0.8.0
|
|
92
|
+
## [0.8.0](https://github.com/RokuCommunity/roku-debug/compare/v0.7.0...v0.8.0) - 2021-05-03
|
|
69
93
|
### Added
|
|
70
94
|
- port 8080 command support ([#29](https://github.com/rokucommunity/roku-debug/pull/29))
|
|
71
95
|
### Fixed
|
|
@@ -73,30 +97,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
73
97
|
|
|
74
98
|
|
|
75
99
|
|
|
76
|
-
## [0.7.0] - 2021-04-27
|
|
77
|
-
[0.7.0]: https://github.com/RokuCommunity/roku-debug/compare/v0.6.0...v0.7.0
|
|
100
|
+
## [0.7.0](https://github.com/RokuCommunity/roku-debug/compare/v0.6.0...v0.7.0) - 2021-04-27
|
|
78
101
|
### Added
|
|
79
102
|
- support for inspecting roXmlElement ([#23](https://github.com/rokucommunity/roku-debug/pull/23))
|
|
80
103
|
- support for capturing chanperf events ([#28](https://github.com/rokucommunity/roku-debug/pull/28))
|
|
81
104
|
|
|
82
105
|
|
|
83
106
|
|
|
84
|
-
## [0.6.0] - 2021-03-09
|
|
85
|
-
[0.6.0]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.10...v0.6.0
|
|
107
|
+
## [0.6.0](https://github.com/RokuCommunity/roku-debug/compare/v0.5.10...v0.6.0) - 2021-03-09
|
|
86
108
|
### Added
|
|
87
109
|
- rdb integration ([#25](https://github.com/rokucommunity/roku-debug/pull/25))
|
|
88
110
|
|
|
89
111
|
|
|
90
112
|
|
|
91
|
-
## [0.5.10] - 2021-02-16
|
|
92
|
-
[0.5.10]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.9...v0.5.10
|
|
113
|
+
## [0.5.10](https://github.com/RokuCommunity/roku-debug/compare/v0.5.9...v0.5.10) - 2021-02-16
|
|
93
114
|
### Fixed
|
|
94
115
|
- stack trace for brighterscript class methods appearing as `anon`
|
|
95
116
|
|
|
96
117
|
|
|
97
118
|
|
|
98
|
-
## [0.5.9] - 2021-01-19
|
|
99
|
-
[0.5.9]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.8...v0.5.9
|
|
119
|
+
## [0.5.9](https://github.com/RokuCommunity/roku-debug/compare/v0.5.8...v0.5.9) - 2021-01-19
|
|
100
120
|
### Fixed
|
|
101
121
|
- timing issue when shutting down debug session before the log processor has finish its job
|
|
102
122
|
- off-by-one location of "compile errors" when device validates XML components
|
|
@@ -108,44 +128,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
108
128
|
|
|
109
129
|
|
|
110
130
|
|
|
111
|
-
## [0.5.8] - 2020-10-23
|
|
112
|
-
[0.5.8]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.7...v0.5.8
|
|
131
|
+
## [0.5.8](https://github.com/RokuCommunity/roku-debug/compare/v0.5.7...v0.5.8) - 2020-10-23
|
|
113
132
|
### Fixed
|
|
114
133
|
- bug when converting `$anon_###` function names into original function names that was using the wrong line number to look up the name. ([#21](https://github.com/rokucommunity/roku-debug/pull/21))
|
|
115
134
|
|
|
116
135
|
|
|
117
136
|
|
|
118
|
-
## [0.5.7] - 2020-10-06
|
|
119
|
-
[0.5.7]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.6...v0.5.7
|
|
137
|
+
## [0.5.7](https://github.com/RokuCommunity/roku-debug/compare/v0.5.6...v0.5.7) - 2020-10-06
|
|
120
138
|
### Fixed
|
|
121
139
|
- bug that was not passing in the `stagingFolderPath` property for the root project, and therefore incorrectly loading that value from `bsconfig.json` if it existed. ([#18](https://github.com/rokucommunity/roku-debug/pull/18))
|
|
122
140
|
|
|
123
141
|
|
|
124
142
|
|
|
125
|
-
## [0.5.6] - 2020-09-30
|
|
126
|
-
[0.5.6]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.5...v0.5.6
|
|
143
|
+
## [0.5.6](https://github.com/RokuCommunity/roku-debug/compare/v0.5.5...v0.5.6) - 2020-09-30
|
|
127
144
|
### Fixed
|
|
128
145
|
- bug that prevented component library debug sessions from launching.
|
|
129
146
|
|
|
130
147
|
|
|
131
148
|
|
|
132
|
-
## [0.5.5] - 2020-09-28
|
|
133
|
-
[0.5.5]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.4...v0.5.5
|
|
149
|
+
## [0.5.5](https://github.com/RokuCommunity/roku-debug/compare/v0.5.4...v0.5.5) - 2020-09-28
|
|
134
150
|
### Fixed
|
|
135
151
|
- bug in the component library bundling that was using the `src` instead of `dest` for finding the manifest path ([#15](https://github.com/rokucommunity/roku-debug/pull/15))
|
|
136
152
|
|
|
137
153
|
|
|
138
154
|
|
|
139
|
-
## [0.5.4] - 2020-09-25
|
|
140
|
-
[0.5.4]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.3...v0.5.4
|
|
155
|
+
## [0.5.4](https://github.com/RokuCommunity/roku-debug/compare/v0.5.3...v0.5.4) - 2020-09-25
|
|
141
156
|
### Changed
|
|
142
157
|
- fixed some false positive detections of `Can't continue` in the TelnetAdapter
|
|
143
158
|
- fixed version comparision links in the changelogs
|
|
144
159
|
|
|
145
160
|
|
|
146
161
|
|
|
147
|
-
## [0.5.3] - 2020-08-14
|
|
148
|
-
[0.5.3]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.2...v0.5.3
|
|
162
|
+
## [0.5.3](https://github.com/RokuCommunity/roku-debug/compare/v0.5.2...v0.5.3) - 2020-08-14
|
|
149
163
|
### Changed
|
|
150
164
|
- upgraded to [roku-deploy@3.2.3](https://github.com/rokucommunity/roku-deploy/blob/master/CHANGELOG.md#323---2020-08-14)
|
|
151
165
|
- throw exception when copying to staging folder and `rootDir` does not exist in the file system
|
|
@@ -153,8 +167,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
153
167
|
|
|
154
168
|
|
|
155
169
|
|
|
156
|
-
## [0.5.2] - 2020-07-14
|
|
157
|
-
[0.5.2]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.1...v0.5.2
|
|
170
|
+
## [0.5.2](https://github.com/RokuCommunity/roku-debug/compare/v0.5.1...v0.5.2) - 2020-07-14
|
|
158
171
|
### Changed
|
|
159
172
|
- upgraded to [roku-deploy@3.2.2](https://github.com/rokucommunity/roku-deploy/blob/master/CHANGELOG.md#322---2020-07-14)
|
|
160
173
|
### Fixed
|
|
@@ -162,16 +175,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
162
175
|
|
|
163
176
|
|
|
164
177
|
|
|
165
|
-
## [0.5.1] - 2020-07-11
|
|
166
|
-
[0.5.1]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.0...v0.5.1
|
|
178
|
+
## [0.5.1](https://github.com/RokuCommunity/roku-debug/compare/v0.5.0...v0.5.1) - 2020-07-11
|
|
167
179
|
### Fixed
|
|
168
180
|
- Prevent debug session crash if target breakpoint file doesn't exist. [#10](https://github.com/rokucommunity/roku-debug/pull/10)
|
|
169
181
|
-Bug when converting source location to staging locations that incorrectly checked rootDir before sourceDirs. [#10](https://github.com/rokucommunity/roku-debug/pull/10)
|
|
170
182
|
|
|
171
183
|
|
|
172
184
|
|
|
173
|
-
## [0.5.0]
|
|
174
|
-
[0.5.0]: https://github.com/RokuCommunity/roku-debug/compare/v0.4.0...v0.5.0
|
|
185
|
+
## [0.5.0](https://github.com/RokuCommunity/roku-debug/compare/v0.4.0...v0.5.0)- 2020-07-06
|
|
175
186
|
### Added
|
|
176
187
|
- support for inline values during a debug session. [#8](https://github.com/rokucommunity/roku-debug/pull/8)
|
|
177
188
|
### Fixed
|
|
@@ -179,15 +190,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
179
190
|
|
|
180
191
|
|
|
181
192
|
|
|
182
|
-
## [0.4.0]
|
|
183
|
-
[0.4.0]: https://github.com/RokuCommunity/roku-debug/compare/v0.3.7...v0.4.0
|
|
193
|
+
## [0.4.0](https://github.com/RokuCommunity/roku-debug/compare/v0.3.7...v0.4.0)- 2020-07-02
|
|
184
194
|
### Changed
|
|
185
195
|
- Try to look up original function names for anonymous functions in call stack [#6](https://github.com/rokucommunity/roku-debug/issues/6)
|
|
186
196
|
|
|
187
197
|
|
|
188
198
|
|
|
189
|
-
## [0.3.7] - 2020-05-11
|
|
190
|
-
[0.3.7]: https://github.com/RokuCommunity/roku-debug/compare/v0.3.6...v0.3.7
|
|
199
|
+
## [0.3.7](https://github.com/RokuCommunity/roku-debug/compare/v0.3.6...v0.3.7) - 2020-05-11
|
|
191
200
|
### Changed
|
|
192
201
|
- upgraded to roku-deploy@3.1.1
|
|
193
202
|
- brightscript debug commands from the debug console in the telnet adapter like `cont` and `step` are now supported (but use at your own risk as there are synchronization issues between the adapter and vscode sometimes)
|
|
@@ -201,21 +210,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
201
210
|
|
|
202
211
|
|
|
203
212
|
|
|
204
|
-
## [0.3.6] - 2020-04-16
|
|
205
|
-
[0.3.6]: https://github.com/RokuCommunity/roku-debug/compare/v0.3.5...v0.3.6
|
|
213
|
+
## [0.3.6](https://github.com/RokuCommunity/roku-debug/compare/v0.3.5...v0.3.6) - 2020-04-16
|
|
206
214
|
### Fixed
|
|
207
215
|
- bug in socket debugger that would randomly try and run the `verifyHandshake()` method more than once during startup.
|
|
208
216
|
|
|
209
217
|
|
|
210
218
|
|
|
211
|
-
## [0.3.5] - 2020-04-10
|
|
212
|
-
[0.3.5]: https://github.com/RokuCommunity/roku-debug/compare/v0.3.4...v0.3.5
|
|
219
|
+
## [0.3.5](https://github.com/RokuCommunity/roku-debug/compare/v0.3.4...v0.3.5) - 2020-04-10
|
|
213
220
|
### Changed
|
|
214
221
|
- upgraded to [roku-deploy@3.0.2](https://www.npmjs.com/package/roku-debug/v/0.3.4) which fixed a file copy bug in subdirectories of symlinked folders
|
|
215
222
|
|
|
216
223
|
|
|
217
224
|
|
|
218
|
-
## [0.3.4] - 2020-04-07
|
|
225
|
+
## [0.3.4](https://github.com/RokuCommunity/roku-debug/compare/v0.3.3...v0.3.4) - 2020-04-07
|
|
219
226
|
### Changed
|
|
220
227
|
- renamed `enableSocketDebugger` to `enableDebugProtocol`
|
|
221
228
|
### Fixed
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CompileStatus = exports.CompileErrorProcessor = exports.GENERAL_XML_ERROR = void 0;
|
|
4
4
|
const events_1 = require("events");
|
|
5
|
-
const
|
|
5
|
+
const logging_1 = require("./logging");
|
|
6
6
|
exports.GENERAL_XML_ERROR = 'General XML compilation error';
|
|
7
7
|
class CompileErrorProcessor {
|
|
8
8
|
constructor() {
|
|
9
|
+
this.logger = logging_1.logger.createLogger(`[${CompileErrorProcessor.name}]`);
|
|
9
10
|
this.status = CompileStatus.none;
|
|
10
11
|
this.startCompilingLine = -1;
|
|
11
12
|
this.endCompilingLine = -1;
|
|
@@ -40,7 +41,7 @@ class CompileErrorProcessor {
|
|
|
40
41
|
case CompileStatus.compileError:
|
|
41
42
|
this.endCompilingLine = this.getEndCompilingLine(newLines);
|
|
42
43
|
if (this.endCompilingLine !== -1) {
|
|
43
|
-
|
|
44
|
+
this.logger.debug('[processUnhandledLines] entering state CompileStatus.running');
|
|
44
45
|
this.status = CompileStatus.running;
|
|
45
46
|
this.resetCompileErrorTimer(false);
|
|
46
47
|
}
|
|
@@ -50,7 +51,7 @@ class CompileErrorProcessor {
|
|
|
50
51
|
//check to see if we've entered an error scenario
|
|
51
52
|
let hasError = /\berror\b/gi.test(responseText);
|
|
52
53
|
if (hasError) {
|
|
53
|
-
|
|
54
|
+
this.logger.debug('[processUnhandledLines] entering state CompileStatus.compileError');
|
|
54
55
|
this.status = CompileStatus.compileError;
|
|
55
56
|
}
|
|
56
57
|
}
|
|
@@ -64,7 +65,7 @@ class CompileErrorProcessor {
|
|
|
64
65
|
this.startCompilingLine = this.getStartingCompilingLine(newLines);
|
|
65
66
|
this.compilingLines = this.compilingLines.concat(newLines);
|
|
66
67
|
if (this.startCompilingLine !== -1) {
|
|
67
|
-
|
|
68
|
+
this.logger.debug('[processUnhandledLines] entering state CompileStatus.compiling');
|
|
68
69
|
newLines.splice(0, this.startCompilingLine);
|
|
69
70
|
this.status = CompileStatus.compiling;
|
|
70
71
|
this.resetCompileErrorTimer(true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompileErrorProcessor.js","sourceRoot":"","sources":["../src/CompileErrorProcessor.ts"],"names":[],"mappings":";;;AAAA,mCAAsC;
|
|
1
|
+
{"version":3,"file":"CompileErrorProcessor.js","sourceRoot":"","sources":["../src/CompileErrorProcessor.ts"],"names":[],"mappings":";;;AAAA,mCAAsC;AAEtC,uCAAmC;AAEtB,QAAA,iBAAiB,GAAG,+BAA+B,CAAC;AAEjE,MAAa,qBAAqB;IAAlC;QAEY,WAAM,GAAG,gBAAM,CAAC,YAAY,CAAC,IAAI,qBAAqB,CAAC,IAAI,GAAG,CAAC,CAAC;QACjE,WAAM,GAAkB,aAAa,CAAC,IAAI,CAAC;QAC3C,uBAAkB,GAAG,CAAC,CAAC,CAAC;QACxB,qBAAgB,GAAG,CAAC,CAAC,CAAC;QACtB,mBAAc,GAAG,EAAc,CAAC;QAChC,0BAAqB,GAAG,IAAI,CAAC;QAC5B,YAAO,GAAG,IAAI,qBAAY,E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AAC,CAAC;QACnB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACnC,IAAI,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YACpB,6CAA6C;YAC7C,IAAI,2BAA2B,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBACxC,SAAS,GAAG,CAAC,CAAC;aACjB;SACJ;QACD,OAAO,SAAS,CAAC;IAErB,CAAC;IAED;;;OAGG;IACK,YAAY;QAChB,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QAE9B,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;YACzC,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YAClC,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,IAAI,KAAK,UAAU,CAAC;QACjF,CAAC,CAAC,CAAC;QAEH,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;YACnB,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;SACvC;IACL,CAAC;CACJ;AA3WD,sDA2WC;AAWD,IAAY,aAKX;AALD,WAAY,aAAa;IACrB,8BAAa,CAAA;IACb,wCAAuB,CAAA;IACvB,8CAA6B,CAAA;IAC7B,oCAAmB,CAAA;AACvB,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { FileEntry } from 'roku-deploy';
|
|
2
2
|
import type { DebugProtocol } from 'vscode-debugprotocol';
|
|
3
|
+
import type { LogLevel } from './logging';
|
|
3
4
|
/**
|
|
4
5
|
* This interface should always match the schema found in the mock-debug extension manifest.
|
|
5
6
|
*/
|
|
@@ -132,6 +133,10 @@ export interface LaunchConfiguration extends DebugProtocol.LaunchRequestArgument
|
|
|
132
133
|
* This should generally be set to "${cwd}/.roku-deploy-staging", but that's ultimately up to the debug client.
|
|
133
134
|
*/
|
|
134
135
|
stagingFolderPath?: string;
|
|
136
|
+
/**
|
|
137
|
+
* What level of debug server's internal logging should be performed in the debug session
|
|
138
|
+
*/
|
|
139
|
+
logLevel: LogLevel;
|
|
135
140
|
}
|
|
136
141
|
export interface ComponentLibraryConfiguration {
|
|
137
142
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SceneGraphDebugCommandController = void 0;
|
|
4
|
-
const
|
|
4
|
+
const logging_1 = require("./logging");
|
|
5
5
|
// eslint-disable-next-line
|
|
6
6
|
const Telnet = require('telnet-client');
|
|
7
7
|
class SceneGraphDebugCommandController {
|
|
@@ -12,6 +12,7 @@ class SceneGraphDebugCommandController {
|
|
|
12
12
|
this.timeout = 5000;
|
|
13
13
|
this.port = 8080;
|
|
14
14
|
this.maxBufferLength = 5242880;
|
|
15
|
+
this.logger = logging_1.logger.createLogger(`[${SceneGraphDebugCommandController.name}]`);
|
|
15
16
|
}
|
|
16
17
|
async connect() {
|
|
17
18
|
this.removeConnection();
|
|
@@ -21,14 +22,16 @@ class SceneGraphDebugCommandController {
|
|
|
21
22
|
connection.on('close', () => {
|
|
22
23
|
this.removeConnection();
|
|
23
24
|
});
|
|
24
|
-
|
|
25
|
+
const config = {
|
|
25
26
|
host: this.host,
|
|
26
27
|
port: this.port,
|
|
27
28
|
shellPrompt: this.shellPrompt,
|
|
28
29
|
echoLines: this.echoLines,
|
|
29
30
|
timeout: this.timeout,
|
|
30
31
|
maxBufferLength: this.maxBufferLength
|
|
31
|
-
}
|
|
32
|
+
};
|
|
33
|
+
this.logger.debug('Establishing telnet connection', config);
|
|
34
|
+
await connection.connect(config);
|
|
32
35
|
this.connection = connection;
|
|
33
36
|
}
|
|
34
37
|
catch (e) {
|
|
@@ -192,10 +195,11 @@ class SceneGraphDebugCommandController {
|
|
|
192
195
|
*/
|
|
193
196
|
async exec(command) {
|
|
194
197
|
let response = this.getBlankResponseObject(command);
|
|
195
|
-
|
|
198
|
+
this.logger.log(`Running SceneGraphDebugger command`, { command });
|
|
196
199
|
// Set up a short lived connection if a long lived one has not beed started
|
|
197
200
|
let closeConnectionAfterCommand = !this.connection;
|
|
198
201
|
if (closeConnectionAfterCommand) {
|
|
202
|
+
this.logger.trace('Opening new connection');
|
|
199
203
|
try {
|
|
200
204
|
await this.connect();
|
|
201
205
|
}
|
|
@@ -207,6 +211,7 @@ class SceneGraphDebugCommandController {
|
|
|
207
211
|
if (this.connection) {
|
|
208
212
|
try {
|
|
209
213
|
response.result.rawResponse = await this.connection.exec(command);
|
|
214
|
+
this.logger.debug('Command complete', { command });
|
|
210
215
|
}
|
|
211
216
|
catch (error) {
|
|
212
217
|
response.error = error;
|
|
@@ -214,6 +219,7 @@ class SceneGraphDebugCommandController {
|
|
|
214
219
|
}
|
|
215
220
|
// Close the connection if we opened a short lived one
|
|
216
221
|
if (closeConnectionAfterCommand) {
|
|
222
|
+
this.logger.trace('Closing connection');
|
|
217
223
|
await this.end();
|
|
218
224
|
}
|
|
219
225
|
// Tada! Results.
|
|
@@ -231,7 +237,7 @@ class SceneGraphDebugCommandController {
|
|
|
231
237
|
await this.connection.exec('quit', { shellPrompt: 'Quit command received, exiting.' });
|
|
232
238
|
}
|
|
233
239
|
catch (error) {
|
|
234
|
-
|
|
240
|
+
this.logger.error(`There was a problem quitting the SceneGraphDebugCommand connection`, error);
|
|
235
241
|
}
|
|
236
242
|
this.removeConnection();
|
|
237
243
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SceneGraphDebugCommandController.js","sourceRoot":"","sources":["../src/SceneGraphDebugCommandController.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"SceneGraph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,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;YACxC,MAAM,IAAI,CAAC,GAAG,EAAE,CAAC;SACpB;QAED,iBAAiB;QACjB,OAAO,QAAQ,CAAC;IACpB,CAAC;IAGD;;OAEG;IACI,KAAK,CAAC,GAAG;QACZ,IAAI,IAAI,CAAC,UAAU,EAAE;YACjB,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;YAC/D,IAAI;gBACA,IAAI;oBACA,mFAAmF;oBACnF,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,iCAAiC,EAAE,CAAC,CAAC;iBAC1F;gBAAC,OAAO,KAAK,EAAE;oBACZ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,oEAAoE,EAAE,KAAK,CAAC,CAAC;iBAClG;gBACD,IAAI,CAAC,gBAAgB,EAAE,CAAC;aAC3B;YAAC,OAAO,KAAK,EAAE;gBACZ,IAAI,CAAC,gBAAgB,EAAE,CAAC;gBACxB,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;aACvC;SACJ;IACL,CAAC;IAGD;;;OAGG;IACK,sBAAsB,CAAC,OAAe;QAC1C,OAAO;YACH,OAAO,EAAE,OAAO;YAChB,MAAM,EAAE;gBACJ,WAAW,EAAE,EAAE;aAClB;SACJ,CAAC;IACN,CAAC;CACJ;AAtSD,4EAsSC"}
|
|
@@ -2,6 +2,7 @@ import type { ProtocolVersionDetails } from '../debugProtocol/Debugger';
|
|
|
2
2
|
import type { RendezvousHistory } from '../RendezvousTracker';
|
|
3
3
|
import type { ChanperfData } from '../ChanperfTracker';
|
|
4
4
|
import type { SourceLocation } from '../managers/LocationManager';
|
|
5
|
+
import type { HighLevelType } from '../interfaces';
|
|
5
6
|
/**
|
|
6
7
|
* A class that connects to a Roku device over telnet debugger port and provides a standardized way of interacting with it.
|
|
7
8
|
*/
|
|
@@ -9,6 +10,7 @@ export declare class DebugProtocolAdapter {
|
|
|
9
10
|
private host;
|
|
10
11
|
private stopOnEntry;
|
|
11
12
|
constructor(host: string, stopOnEntry?: boolean);
|
|
13
|
+
private logger;
|
|
12
14
|
connected: boolean;
|
|
13
15
|
private compileClient;
|
|
14
16
|
private compileErrorProcessor;
|
|
@@ -144,13 +146,6 @@ export interface StackFrame {
|
|
|
144
146
|
export declare enum EventName {
|
|
145
147
|
suspend = "suspend"
|
|
146
148
|
}
|
|
147
|
-
export declare enum HighLevelType {
|
|
148
|
-
primative = "primative",
|
|
149
|
-
array = "array",
|
|
150
|
-
function = "function",
|
|
151
|
-
object = "object",
|
|
152
|
-
uninitialized = "uninitialized"
|
|
153
|
-
}
|
|
154
149
|
export interface EvaluateContainer {
|
|
155
150
|
name: string;
|
|
156
151
|
evaluateName: string;
|
|
@@ -161,6 +156,7 @@ export interface EvaluateContainer {
|
|
|
161
156
|
elementCount: number;
|
|
162
157
|
highLevelType: HighLevelType;
|
|
163
158
|
children: EvaluateContainer[];
|
|
159
|
+
presentationHint?: 'property' | 'method' | 'class' | 'data' | 'event' | 'baseClass' | 'innerClass' | 'interface' | 'mostDerivedClass' | 'virtual' | 'dataBreakpoint';
|
|
164
160
|
}
|
|
165
161
|
export declare enum KeyType {
|
|
166
162
|
string = "String",
|