roku-debug 0.9.1 → 0.9.4
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
CHANGED
|
@@ -6,13 +6,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
## [0.9.
|
|
9
|
+
## [0.9.4](https://github.com/rokucommunity/roku-debug/compare/v0.9.3...v0.9.4) - 2022-02-24
|
|
10
|
+
### Changed
|
|
11
|
+
- upgrade to [brighterscript@0.43.0](https://github.com/rokucommunity/brighterscript/blob/master/CHANGELOG.md#0452---2022-02-24).
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [0.9.3](https://github.com/rokucommunity/roku-debug/compare/v0.9.2...v0.9.3) - 2022-01-28
|
|
16
|
+
### Changed
|
|
17
|
+
- upgrade to [brighterscript@0.43.0](https://github.com/rokucommunity/brighterscript/blob/master/CHANGELOG.md#0430---2022-01-28).
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## [0.9.2](https://github.com/rokucommunity/roku-debug/compare/v0.9.1...v0.9.2) - 2022-01-12
|
|
22
|
+
### Fixed
|
|
23
|
+
- 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))
|
|
24
|
+
- combine telnet output that was split due to buffer sizes ([#64](https://github.com/rokucommunity/roku-debug/pull/64))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [0.9.1](https://github.com/rokucommunity/roku-debug/compare/v0.9.0...v0.9.1) - 2022-01-05
|
|
10
29
|
### Fixed
|
|
11
30
|
- issue where `"consoleOutput": "full"` shows no output when `enableDebugProtocol === true`. ([#65](https://github.com/rokucommunity/roku-debug/pull/65))
|
|
12
31
|
|
|
13
32
|
|
|
14
33
|
|
|
15
|
-
## [0.9.0](https://github.com/rokucommunity/
|
|
34
|
+
## [0.9.0](https://github.com/rokucommunity/roku-debug/compare/v0.8.7...v0.9.0) - 2021-12-17
|
|
16
35
|
### Added
|
|
17
36
|
- use @rokucommunity/logger package for logging. Adds many new log messages at various debug levels. ([#61](https://github.com/rokucommunity/roku-debug/pull/61))
|
|
18
37
|
- add `logLevel` launch configuration variable
|
|
@@ -23,7 +42,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
23
42
|
|
|
24
43
|
|
|
25
44
|
|
|
26
|
-
## [0.8.7](https://github.com/rokucommunity/
|
|
45
|
+
## [0.8.7](https://github.com/rokucommunity/roku-debug/compare/v0.8.6...v0.8.7) - 2021-11-11
|
|
27
46
|
### Changed
|
|
28
47
|
- added lots of logging for help troubleshooting issues in roku-debug. ([#56](https://github.com/rokucommunity/roku-debug/pull/56))
|
|
29
48
|
### Fixed
|
|
@@ -31,7 +50,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
31
50
|
|
|
32
51
|
|
|
33
52
|
|
|
34
|
-
## [0.8.6](https://github.com/rokucommunity/
|
|
53
|
+
## [0.8.6](https://github.com/rokucommunity/roku-debug/compare/v0.8.5...v0.8.6) - 2021-11-04
|
|
35
54
|
### Changed
|
|
36
55
|
- 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.
|
|
37
56
|
### Fixed
|
|
@@ -40,8 +59,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
40
59
|
|
|
41
60
|
|
|
42
61
|
|
|
43
|
-
## [0.8.5
|
|
44
|
-
[0.8.5]: https://github.com/RokuCommunity/roku-debug/compare/v0.8.4...v0.8.5
|
|
62
|
+
## [0.8.7](https://github.com/RokuCommunity/roku-debug/compare/v0.8.4...v0.8.5) - 2021-10-27
|
|
45
63
|
### Changed
|
|
46
64
|
- additional logging to the "BrightScript Debug Server" output panel
|
|
47
65
|
- 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
|
|
@@ -52,37 +70,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
52
70
|
|
|
53
71
|
|
|
54
72
|
|
|
55
|
-
## [0.8.4] - 2021-06-01
|
|
56
|
-
[0.8.4]: https://github.com/RokuCommunity/roku-debug/compare/v0.8.3...v0.8.4
|
|
73
|
+
## [0.8.4](https://github.com/RokuCommunity/roku-debug/compare/v0.8.3...v0.8.4) - 2021-06-01
|
|
57
74
|
### Fixed
|
|
58
75
|
- debugger freeze when debugger prompt split across multiple telnet messages ([#35](https://github.com/rokucommunity/roku-debug/pull/35))
|
|
59
76
|
|
|
60
77
|
|
|
61
78
|
|
|
62
|
-
## [0.8.3] - 2021-06-01
|
|
63
|
-
[0.8.3]: https://github.com/RokuCommunity/roku-debug/compare/v0.8.2...v0.8.3
|
|
79
|
+
## [0.8.3](https://github.com/RokuCommunity/roku-debug/compare/v0.8.2...v0.8.3) - 2021-06-01
|
|
64
80
|
### Changed
|
|
65
81
|
- 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
|
|
66
82
|
|
|
67
83
|
|
|
68
84
|
|
|
69
|
-
## [0.8.2] - 2021-05-28
|
|
70
|
-
[0.8.2]: https://github.com/RokuCommunity/roku-debug/compare/v0.8.1...v0.8.2
|
|
85
|
+
## [0.8.2](https://github.com/RokuCommunity/roku-debug/compare/v0.8.1...v0.8.2) - 2021-05-28
|
|
71
86
|
### Changed
|
|
72
87
|
- 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
|
|
73
88
|
|
|
74
89
|
|
|
75
90
|
|
|
76
|
-
## [0.8.1] - 2021-05-04
|
|
77
|
-
[0.8.1]: https://github.com/RokuCommunity/roku-debug/compare/v0.8.0...v0.8.1
|
|
91
|
+
## [0.8.1](https://github.com/RokuCommunity/roku-debug/compare/v0.8.0...v0.8.1) - 2021-05-04
|
|
78
92
|
### Fixed
|
|
79
93
|
- Fix incorrect sgnodes shell prompt matching string. ([#31](https://github.com/rokucommunity/roku-debug/pull/31))
|
|
80
94
|
- Increase port 8080 commands max buffer size ([#31](https://github.com/rokucommunity/roku-debug/pull/31))
|
|
81
95
|
|
|
82
96
|
|
|
83
97
|
|
|
84
|
-
## [0.8.0] - 2021-05-03
|
|
85
|
-
[0.8.0]: https://github.com/RokuCommunity/roku-debug/compare/v0.7.0...v0.8.0
|
|
98
|
+
## [0.8.0](https://github.com/RokuCommunity/roku-debug/compare/v0.7.0...v0.8.0) - 2021-05-03
|
|
86
99
|
### Added
|
|
87
100
|
- port 8080 command support ([#29](https://github.com/rokucommunity/roku-debug/pull/29))
|
|
88
101
|
### Fixed
|
|
@@ -90,30 +103,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
90
103
|
|
|
91
104
|
|
|
92
105
|
|
|
93
|
-
## [0.7.0] - 2021-04-27
|
|
94
|
-
[0.7.0]: https://github.com/RokuCommunity/roku-debug/compare/v0.6.0...v0.7.0
|
|
106
|
+
## [0.7.0](https://github.com/RokuCommunity/roku-debug/compare/v0.6.0...v0.7.0) - 2021-04-27
|
|
95
107
|
### Added
|
|
96
108
|
- support for inspecting roXmlElement ([#23](https://github.com/rokucommunity/roku-debug/pull/23))
|
|
97
109
|
- support for capturing chanperf events ([#28](https://github.com/rokucommunity/roku-debug/pull/28))
|
|
98
110
|
|
|
99
111
|
|
|
100
112
|
|
|
101
|
-
## [0.6.0] - 2021-03-09
|
|
102
|
-
[0.6.0]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.10...v0.6.0
|
|
113
|
+
## [0.6.0](https://github.com/RokuCommunity/roku-debug/compare/v0.5.10...v0.6.0) - 2021-03-09
|
|
103
114
|
### Added
|
|
104
115
|
- rdb integration ([#25](https://github.com/rokucommunity/roku-debug/pull/25))
|
|
105
116
|
|
|
106
117
|
|
|
107
118
|
|
|
108
|
-
## [0.5.10] - 2021-02-16
|
|
109
|
-
[0.5.10]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.9...v0.5.10
|
|
119
|
+
## [0.5.10](https://github.com/RokuCommunity/roku-debug/compare/v0.5.9...v0.5.10) - 2021-02-16
|
|
110
120
|
### Fixed
|
|
111
121
|
- stack trace for brighterscript class methods appearing as `anon`
|
|
112
122
|
|
|
113
123
|
|
|
114
124
|
|
|
115
|
-
## [0.5.9] - 2021-01-19
|
|
116
|
-
[0.5.9]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.8...v0.5.9
|
|
125
|
+
## [0.5.9](https://github.com/RokuCommunity/roku-debug/compare/v0.5.8...v0.5.9) - 2021-01-19
|
|
117
126
|
### Fixed
|
|
118
127
|
- timing issue when shutting down debug session before the log processor has finish its job
|
|
119
128
|
- off-by-one location of "compile errors" when device validates XML components
|
|
@@ -125,44 +134,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
125
134
|
|
|
126
135
|
|
|
127
136
|
|
|
128
|
-
## [0.5.8] - 2020-10-23
|
|
129
|
-
[0.5.8]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.7...v0.5.8
|
|
137
|
+
## [0.5.8](https://github.com/RokuCommunity/roku-debug/compare/v0.5.7...v0.5.8) - 2020-10-23
|
|
130
138
|
### Fixed
|
|
131
139
|
- 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))
|
|
132
140
|
|
|
133
141
|
|
|
134
142
|
|
|
135
|
-
## [0.5.7] - 2020-10-06
|
|
136
|
-
[0.5.7]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.6...v0.5.7
|
|
143
|
+
## [0.5.7](https://github.com/RokuCommunity/roku-debug/compare/v0.5.6...v0.5.7) - 2020-10-06
|
|
137
144
|
### Fixed
|
|
138
145
|
- 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))
|
|
139
146
|
|
|
140
147
|
|
|
141
148
|
|
|
142
|
-
## [0.5.6] - 2020-09-30
|
|
143
|
-
[0.5.6]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.5...v0.5.6
|
|
149
|
+
## [0.5.6](https://github.com/RokuCommunity/roku-debug/compare/v0.5.5...v0.5.6) - 2020-09-30
|
|
144
150
|
### Fixed
|
|
145
151
|
- bug that prevented component library debug sessions from launching.
|
|
146
152
|
|
|
147
153
|
|
|
148
154
|
|
|
149
|
-
## [0.5.5] - 2020-09-28
|
|
150
|
-
[0.5.5]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.4...v0.5.5
|
|
155
|
+
## [0.5.5](https://github.com/RokuCommunity/roku-debug/compare/v0.5.4...v0.5.5) - 2020-09-28
|
|
151
156
|
### Fixed
|
|
152
157
|
- 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))
|
|
153
158
|
|
|
154
159
|
|
|
155
160
|
|
|
156
|
-
## [0.5.4] - 2020-09-25
|
|
157
|
-
[0.5.4]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.3...v0.5.4
|
|
161
|
+
## [0.5.4](https://github.com/RokuCommunity/roku-debug/compare/v0.5.3...v0.5.4) - 2020-09-25
|
|
158
162
|
### Changed
|
|
159
163
|
- fixed some false positive detections of `Can't continue` in the TelnetAdapter
|
|
160
164
|
- fixed version comparision links in the changelogs
|
|
161
165
|
|
|
162
166
|
|
|
163
167
|
|
|
164
|
-
## [0.5.3] - 2020-08-14
|
|
165
|
-
[0.5.3]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.2...v0.5.3
|
|
168
|
+
## [0.5.3](https://github.com/RokuCommunity/roku-debug/compare/v0.5.2...v0.5.3) - 2020-08-14
|
|
166
169
|
### Changed
|
|
167
170
|
- upgraded to [roku-deploy@3.2.3](https://github.com/rokucommunity/roku-deploy/blob/master/CHANGELOG.md#323---2020-08-14)
|
|
168
171
|
- throw exception when copying to staging folder and `rootDir` does not exist in the file system
|
|
@@ -170,8 +173,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
170
173
|
|
|
171
174
|
|
|
172
175
|
|
|
173
|
-
## [0.5.2] - 2020-07-14
|
|
174
|
-
[0.5.2]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.1...v0.5.2
|
|
176
|
+
## [0.5.2](https://github.com/RokuCommunity/roku-debug/compare/v0.5.1...v0.5.2) - 2020-07-14
|
|
175
177
|
### Changed
|
|
176
178
|
- upgraded to [roku-deploy@3.2.2](https://github.com/rokucommunity/roku-deploy/blob/master/CHANGELOG.md#322---2020-07-14)
|
|
177
179
|
### Fixed
|
|
@@ -179,16 +181,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
179
181
|
|
|
180
182
|
|
|
181
183
|
|
|
182
|
-
## [0.5.1] - 2020-07-11
|
|
183
|
-
[0.5.1]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.0...v0.5.1
|
|
184
|
+
## [0.5.1](https://github.com/RokuCommunity/roku-debug/compare/v0.5.0...v0.5.1) - 2020-07-11
|
|
184
185
|
### Fixed
|
|
185
186
|
- Prevent debug session crash if target breakpoint file doesn't exist. [#10](https://github.com/rokucommunity/roku-debug/pull/10)
|
|
186
187
|
-Bug when converting source location to staging locations that incorrectly checked rootDir before sourceDirs. [#10](https://github.com/rokucommunity/roku-debug/pull/10)
|
|
187
188
|
|
|
188
189
|
|
|
189
190
|
|
|
190
|
-
## [0.5.0]
|
|
191
|
-
[0.5.0]: https://github.com/RokuCommunity/roku-debug/compare/v0.4.0...v0.5.0
|
|
191
|
+
## [0.5.0](https://github.com/RokuCommunity/roku-debug/compare/v0.4.0...v0.5.0)- 2020-07-06
|
|
192
192
|
### Added
|
|
193
193
|
- support for inline values during a debug session. [#8](https://github.com/rokucommunity/roku-debug/pull/8)
|
|
194
194
|
### Fixed
|
|
@@ -196,15 +196,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
196
196
|
|
|
197
197
|
|
|
198
198
|
|
|
199
|
-
## [0.4.0]
|
|
200
|
-
[0.4.0]: https://github.com/RokuCommunity/roku-debug/compare/v0.3.7...v0.4.0
|
|
199
|
+
## [0.4.0](https://github.com/RokuCommunity/roku-debug/compare/v0.3.7...v0.4.0)- 2020-07-02
|
|
201
200
|
### Changed
|
|
202
201
|
- Try to look up original function names for anonymous functions in call stack [#6](https://github.com/rokucommunity/roku-debug/issues/6)
|
|
203
202
|
|
|
204
203
|
|
|
205
204
|
|
|
206
|
-
## [0.3.7] - 2020-05-11
|
|
207
|
-
[0.3.7]: https://github.com/RokuCommunity/roku-debug/compare/v0.3.6...v0.3.7
|
|
205
|
+
## [0.3.7](https://github.com/RokuCommunity/roku-debug/compare/v0.3.6...v0.3.7) - 2020-05-11
|
|
208
206
|
### Changed
|
|
209
207
|
- upgraded to roku-deploy@3.1.1
|
|
210
208
|
- 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)
|
|
@@ -218,21 +216,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
218
216
|
|
|
219
217
|
|
|
220
218
|
|
|
221
|
-
## [0.3.6] - 2020-04-16
|
|
222
|
-
[0.3.6]: https://github.com/RokuCommunity/roku-debug/compare/v0.3.5...v0.3.6
|
|
219
|
+
## [0.3.6](https://github.com/RokuCommunity/roku-debug/compare/v0.3.5...v0.3.6) - 2020-04-16
|
|
223
220
|
### Fixed
|
|
224
221
|
- bug in socket debugger that would randomly try and run the `verifyHandshake()` method more than once during startup.
|
|
225
222
|
|
|
226
223
|
|
|
227
224
|
|
|
228
|
-
## [0.3.5] - 2020-04-10
|
|
229
|
-
[0.3.5]: https://github.com/RokuCommunity/roku-debug/compare/v0.3.4...v0.3.5
|
|
225
|
+
## [0.3.5](https://github.com/RokuCommunity/roku-debug/compare/v0.3.4...v0.3.5) - 2020-04-10
|
|
230
226
|
### Changed
|
|
231
227
|
- 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
|
|
232
228
|
|
|
233
229
|
|
|
234
230
|
|
|
235
|
-
## [0.3.4] - 2020-04-07
|
|
231
|
+
## [0.3.4](https://github.com/RokuCommunity/roku-debug/compare/v0.3.3...v0.3.4) - 2020-04-07
|
|
236
232
|
### Changed
|
|
237
233
|
- renamed `enableSocketDebugger` to `enableDebugProtocol`
|
|
238
234
|
### Fixed
|
|
@@ -23,6 +23,10 @@ export declare class TelnetRequestPipeline {
|
|
|
23
23
|
* during a command execute, or a message split across multiple telnet terminals
|
|
24
24
|
*/
|
|
25
25
|
unhandledText: string;
|
|
26
|
+
/**
|
|
27
|
+
* Stores split telnet messages for next call to `handleData`
|
|
28
|
+
*/
|
|
29
|
+
private buffer;
|
|
26
30
|
private handleData;
|
|
27
31
|
/**
|
|
28
32
|
* Send a command to the device immediately, without waiting for a response, and without worrying about
|
|
@@ -18,6 +18,10 @@ class TelnetRequestPipeline {
|
|
|
18
18
|
* during a command execute, or a message split across multiple telnet terminals
|
|
19
19
|
*/
|
|
20
20
|
this.unhandledText = '';
|
|
21
|
+
/**
|
|
22
|
+
* Stores split telnet messages for next call to `handleData`
|
|
23
|
+
*/
|
|
24
|
+
this.buffer = '';
|
|
21
25
|
/**
|
|
22
26
|
* Used to help with logging
|
|
23
27
|
*/
|
|
@@ -52,9 +56,16 @@ class TelnetRequestPipeline {
|
|
|
52
56
|
handleData(data) {
|
|
53
57
|
const logger = this.logger.createLogger(`[${TelnetRequestPipeline.prototype.handleData.name}]`);
|
|
54
58
|
logger.debug('Raw telnet data', { data }, util_1.util.fence(data));
|
|
59
|
+
this.buffer += data;
|
|
60
|
+
//if the buffer was split, wait for more incoming data
|
|
61
|
+
if (!this.buffer.endsWith('\n') && !util_1.util.endsWithDebuggerPrompt(this.buffer) && !util_1.util.endsWithThreadAttachedText(this.buffer)) {
|
|
62
|
+
logger.debug('Buffer was split. Wait for more incoming data before proceeding', { buffer: this.buffer });
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
55
65
|
//forward all raw console output to listeners
|
|
56
|
-
this.emit('console-output',
|
|
57
|
-
this.unhandledText +=
|
|
66
|
+
this.emit('console-output', this.buffer);
|
|
67
|
+
this.unhandledText += this.buffer;
|
|
68
|
+
this.buffer = '';
|
|
58
69
|
//ensure all debugger prompts appear completely on their own line
|
|
59
70
|
this.unhandledText = util_1.util.ensureDebugPromptOnOwnLine(this.unhandledText);
|
|
60
71
|
//discard all the "thread attached" messages as we find
|
|
@@ -80,7 +91,7 @@ class TelnetRequestPipeline {
|
|
|
80
91
|
this.unhandledText = '';
|
|
81
92
|
}
|
|
82
93
|
else {
|
|
83
|
-
//
|
|
94
|
+
// wait for more incoming data
|
|
84
95
|
}
|
|
85
96
|
//we can safely try to execute next command. if we're ready, it'll execute. if not, it'll wait.
|
|
86
97
|
this.executeNextCommand();
|
|
@@ -135,10 +146,18 @@ class TelnetRequestPipeline {
|
|
|
135
146
|
//we can only execute commands when we're at a debugger prompt. If we're not, then we'll wait until the next chunk of incoming data to try again to execute the command
|
|
136
147
|
if (this.isAtDebuggerPrompt) {
|
|
137
148
|
//get the next command from the queue
|
|
138
|
-
|
|
139
|
-
logger.log('Process the next command', { remainingCommands: this.commands.length, activeCommand:
|
|
149
|
+
const command = this.commands.shift();
|
|
150
|
+
logger.log('Process the next command', { remainingCommands: this.commands.length, activeCommand: command });
|
|
151
|
+
//if the active command does NOT want to wait for a prompt, then remove it as the active command so it doesn't consume incoming telnet
|
|
152
|
+
if (command.waitForPrompt) {
|
|
153
|
+
logger.log('waitForCommand is true, so set as active command');
|
|
154
|
+
this.activeCommand = command;
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
logger.log('waitForCommand is false, so do not set as active command');
|
|
158
|
+
}
|
|
140
159
|
//run the command. the on('data') event will handle launching the next command once this one has finished processing
|
|
141
|
-
|
|
160
|
+
command.execute();
|
|
142
161
|
}
|
|
143
162
|
}
|
|
144
163
|
destroy() {
|
|
@@ -175,10 +194,12 @@ class Command {
|
|
|
175
194
|
let commandText = `${this.commandText}\r\n`;
|
|
176
195
|
this.pipeline.emit('console-output', commandText);
|
|
177
196
|
this.pipeline.client.write(commandText);
|
|
178
|
-
if
|
|
179
|
-
|
|
180
|
-
this.
|
|
197
|
+
//if we're not waiting for a prompt, immediately resolve this command
|
|
198
|
+
if (!this.waitForPrompt) {
|
|
199
|
+
this.deferred.resolve(null);
|
|
181
200
|
}
|
|
201
|
+
// The act of executing this command means we are no longer at the debug prompt
|
|
202
|
+
this.pipeline.isAtDebuggerPrompt = false;
|
|
182
203
|
}
|
|
183
204
|
catch (e) {
|
|
184
205
|
this.logger.error('Error executing command', e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TelnetRequestPipeline.js","sourceRoot":"","sources":["../../src/adapters/TelnetRequestPipeline.ts"],"names":[],"mappings":";;;AACA,8CAA8C;AAC9C,kCAA+B;AAE/B,wCAA0C;AAC1C,mDAA0C;AAE1C,MAAa,qBAAqB;IAC9B,YACW,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QAKjB,WAAM,GAAG,IAAA,sBAAY,EAAC,IAAI,qBAAqB,CAAC,IAAI,GAAG,CAAC,CAAC;QAEzD,aAAQ,GAAc,EAAE,CAAC;QAE1B,uBAAkB,GAAG,KAAK,CAAC;QAU1B,kBAAa,GAAY,SAAS,CAAC;QAEnC,YAAO,GAAG,IAAI,YAAY,EAAE,CAAC;QA6BrC;;;WAGG;QACI,kBAAa,GAAG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AQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;YAEzF,mCAAmC;YACnC,IAAI,CAAA,MAAA,QAAQ,CAAC,aAAa,0CAAE,MAAM,IAAG,CAAC,EAAE;gBACpC,QAAQ,CAAC,IAAI,CAAC,0BAA0B,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;aACrE;YACD,0BAA0B;YAC1B,QAAQ,CAAC,aAAa,GAAG,EAAE,CAAC;YAE5B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,CAAC,CAAC;YACjF,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE;gBAC5B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,mBAAmB,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;gBACrD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;aACnC;iBAAM;gBACH,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,2BAA2B,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,UAAU,EAAE,IAAI,KAAK,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC;aAC9H;SACJ;aAAM;YACH,sDAAsD;SACzD;IACL,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "roku-debug",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"description": "Debug adapter for Roku application development using Node.js",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
86
|
"@rokucommunity/logger": "^0.1.0",
|
|
87
|
-
"brighterscript": "^0.
|
|
87
|
+
"brighterscript": "^0.45.2",
|
|
88
88
|
"dateformat": "^4.6.3",
|
|
89
89
|
"eol": "^0.9.1",
|
|
90
90
|
"eventemitter3": "^4.0.7",
|
|
Binary file
|
package/roku-debug-0.9.1.tgz
DELETED
|
Binary file
|