roku-debug 0.9.2 → 0.10.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/CHANGELOG.md +50 -52
- package/LICENSE +21 -0
- package/README.md +6 -6
- package/dist/adapters/DebugProtocolAdapter.d.ts +18 -8
- package/dist/adapters/DebugProtocolAdapter.js +137 -94
- package/dist/adapters/DebugProtocolAdapter.js.map +1 -1
- package/dist/adapters/TelnetAdapter.d.ts +6 -1
- package/dist/adapters/TelnetAdapter.js +8 -1
- package/dist/adapters/TelnetAdapter.js.map +1 -1
- package/dist/debugProtocol/Constants.d.ts +57 -52
- package/dist/debugProtocol/Constants.js +74 -50
- package/dist/debugProtocol/Constants.js.map +1 -1
- package/dist/debugProtocol/Debugger.d.ts +11 -7
- package/dist/debugProtocol/Debugger.js +154 -114
- package/dist/debugProtocol/Debugger.js.map +1 -1
- package/dist/debugProtocol/responses/ConnectIOPortResponse.d.ts +2 -2
- package/dist/debugProtocol/responses/ConnectIOPortResponse.js +5 -3
- package/dist/debugProtocol/responses/ConnectIOPortResponse.js.map +1 -1
- package/dist/debugProtocol/responses/ExecuteResponseV3.d.ts +23 -0
- package/dist/debugProtocol/responses/ExecuteResponseV3.js +54 -0
- package/dist/debugProtocol/responses/ExecuteResponseV3.js.map +1 -0
- package/dist/debugProtocol/responses/HandshakeResponse.d.ts +2 -0
- package/dist/debugProtocol/responses/HandshakeResponse.js +8 -0
- package/dist/debugProtocol/responses/HandshakeResponse.js.map +1 -1
- package/dist/debugProtocol/responses/HandshakeResponseV3.d.ts +14 -0
- package/dist/debugProtocol/responses/HandshakeResponseV3.js +47 -0
- package/dist/debugProtocol/responses/HandshakeResponseV3.js.map +1 -0
- package/dist/debugProtocol/responses/{Response.d.ts → ProtocolEvent.d.ts} +4 -2
- package/dist/debugProtocol/responses/{Response.js → ProtocolEvent.js} +13 -7
- package/dist/debugProtocol/responses/ProtocolEvent.js.map +1 -0
- package/dist/debugProtocol/responses/ProtocolEventV3.d.ts +11 -0
- package/dist/debugProtocol/responses/ProtocolEventV3.js +42 -0
- package/dist/debugProtocol/responses/ProtocolEventV3.js.map +1 -0
- package/dist/debugProtocol/responses/StackTraceResponse.d.ts +1 -1
- package/dist/debugProtocol/responses/StackTraceResponse.js +2 -2
- package/dist/debugProtocol/responses/StackTraceResponse.js.map +1 -1
- package/dist/debugProtocol/responses/StackTraceResponseV3.d.ts +18 -0
- package/dist/debugProtocol/responses/StackTraceResponseV3.js +58 -0
- package/dist/debugProtocol/responses/StackTraceResponseV3.js.map +1 -0
- package/dist/debugProtocol/responses/ThreadsResponse.d.ts +1 -1
- package/dist/debugProtocol/responses/ThreadsResponse.js +2 -1
- package/dist/debugProtocol/responses/ThreadsResponse.js.map +1 -1
- package/dist/debugProtocol/responses/UndefinedResponse.d.ts +2 -2
- package/dist/debugProtocol/responses/UndefinedResponse.js +5 -3
- package/dist/debugProtocol/responses/UndefinedResponse.js.map +1 -1
- package/dist/debugProtocol/responses/UpdateThreadsResponse.d.ts +2 -2
- package/dist/debugProtocol/responses/UpdateThreadsResponse.js +26 -6
- package/dist/debugProtocol/responses/UpdateThreadsResponse.js.map +1 -1
- package/dist/debugProtocol/responses/VariableResponse.d.ts +1 -1
- package/dist/debugProtocol/responses/VariableResponse.js +16 -8
- package/dist/debugProtocol/responses/VariableResponse.js.map +1 -1
- package/dist/debugProtocol/responses/index.d.ts +4 -1
- package/dist/debugProtocol/responses/index.js +4 -1
- package/dist/debugProtocol/responses/index.js.map +1 -1
- package/dist/debugSession/BrightScriptDebugSession.d.ts +8 -2
- package/dist/debugSession/BrightScriptDebugSession.js +87 -62
- package/dist/debugSession/BrightScriptDebugSession.js.map +1 -1
- package/dist/interfaces.d.ts +4 -0
- package/dist/util.d.ts +10 -7
- package/dist/util.js +71 -0
- package/dist/util.js.map +1 -1
- package/package.json +5 -4
- package/roku-debug-0.10.0.tgz +0 -0
- package/dist/debugProtocol/responses/Response.js.map +0 -1
- package/roku-debug-0.9.2.tgz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,20 +6,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
## [0.
|
|
9
|
+
## [0.10.0](https://github.com/rokucommunity/roku-debug/compare/v0.9.4...v0.10.0) - 2022-03-08
|
|
10
|
+
### Added
|
|
11
|
+
- support for roku debug protocol v3.0.0
|
|
12
|
+
- support for eval/execute functionality over the debug protocol(v3.0.0+) from the debug console
|
|
13
|
+
### Changed
|
|
14
|
+
- running `print` statements in the debug console now runs an actual print statement. To do variable evaluation, simply type the name of the variable.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [0.9.4](https://github.com/rokucommunity/roku-debug/compare/v0.9.3...v0.9.4) - 2022-02-24
|
|
19
|
+
### Changed
|
|
20
|
+
- upgrade to [brighterscript@0.5.2](https://github.com/rokucommunity/brighterscript/blob/master/CHANGELOG.md#0452---2022-02-24).
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## [0.9.3](https://github.com/rokucommunity/roku-debug/compare/v0.9.2...v0.9.3) - 2022-01-28
|
|
25
|
+
### Changed
|
|
26
|
+
- upgrade to [brighterscript@0.43.0](https://github.com/rokucommunity/brighterscript/blob/master/CHANGELOG.md#0430---2022-01-28).
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [0.9.2](https://github.com/rokucommunity/roku-debug/compare/v0.9.1...v0.9.2) - 2022-01-12
|
|
10
31
|
### Fixed
|
|
11
32
|
- 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))
|
|
12
33
|
- combine telnet output that was split due to buffer sizes ([#64](https://github.com/rokucommunity/roku-debug/pull/64))
|
|
13
34
|
|
|
14
35
|
|
|
15
36
|
|
|
16
|
-
## [0.9.1](https://github.com/rokucommunity/
|
|
37
|
+
## [0.9.1](https://github.com/rokucommunity/roku-debug/compare/v0.9.0...v0.9.1) - 2022-01-05
|
|
17
38
|
### Fixed
|
|
18
39
|
- issue where `"consoleOutput": "full"` shows no output when `enableDebugProtocol === true`. ([#65](https://github.com/rokucommunity/roku-debug/pull/65))
|
|
19
40
|
|
|
20
41
|
|
|
21
42
|
|
|
22
|
-
## [0.9.0](https://github.com/rokucommunity/
|
|
43
|
+
## [0.9.0](https://github.com/rokucommunity/roku-debug/compare/v0.8.7...v0.9.0) - 2021-12-17
|
|
23
44
|
### Added
|
|
24
45
|
- use @rokucommunity/logger package for logging. Adds many new log messages at various debug levels. ([#61](https://github.com/rokucommunity/roku-debug/pull/61))
|
|
25
46
|
- add `logLevel` launch configuration variable
|
|
@@ -30,7 +51,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
30
51
|
|
|
31
52
|
|
|
32
53
|
|
|
33
|
-
## [0.8.7](https://github.com/rokucommunity/
|
|
54
|
+
## [0.8.7](https://github.com/rokucommunity/roku-debug/compare/v0.8.6...v0.8.7) - 2021-11-11
|
|
34
55
|
### Changed
|
|
35
56
|
- added lots of logging for help troubleshooting issues in roku-debug. ([#56](https://github.com/rokucommunity/roku-debug/pull/56))
|
|
36
57
|
### Fixed
|
|
@@ -38,7 +59,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
38
59
|
|
|
39
60
|
|
|
40
61
|
|
|
41
|
-
## [0.8.6](https://github.com/rokucommunity/
|
|
62
|
+
## [0.8.6](https://github.com/rokucommunity/roku-debug/compare/v0.8.5...v0.8.6) - 2021-11-04
|
|
42
63
|
### Changed
|
|
43
64
|
- 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.
|
|
44
65
|
### Fixed
|
|
@@ -47,8 +68,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
47
68
|
|
|
48
69
|
|
|
49
70
|
|
|
50
|
-
## [0.8.5
|
|
51
|
-
[0.8.5]: https://github.com/RokuCommunity/roku-debug/compare/v0.8.4...v0.8.5
|
|
71
|
+
## [0.8.7](https://github.com/RokuCommunity/roku-debug/compare/v0.8.4...v0.8.5) - 2021-10-27
|
|
52
72
|
### Changed
|
|
53
73
|
- additional logging to the "BrightScript Debug Server" output panel
|
|
54
74
|
- 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
|
|
@@ -59,37 +79,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
59
79
|
|
|
60
80
|
|
|
61
81
|
|
|
62
|
-
## [0.8.4] - 2021-06-01
|
|
63
|
-
[0.8.4]: https://github.com/RokuCommunity/roku-debug/compare/v0.8.3...v0.8.4
|
|
82
|
+
## [0.8.4](https://github.com/RokuCommunity/roku-debug/compare/v0.8.3...v0.8.4) - 2021-06-01
|
|
64
83
|
### Fixed
|
|
65
84
|
- debugger freeze when debugger prompt split across multiple telnet messages ([#35](https://github.com/rokucommunity/roku-debug/pull/35))
|
|
66
85
|
|
|
67
86
|
|
|
68
87
|
|
|
69
|
-
## [0.8.3] - 2021-06-01
|
|
70
|
-
[0.8.3]: https://github.com/RokuCommunity/roku-debug/compare/v0.8.2...v0.8.3
|
|
88
|
+
## [0.8.3](https://github.com/RokuCommunity/roku-debug/compare/v0.8.2...v0.8.3) - 2021-06-01
|
|
71
89
|
### Changed
|
|
72
90
|
- 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
|
|
73
91
|
|
|
74
92
|
|
|
75
93
|
|
|
76
|
-
## [0.8.2] - 2021-05-28
|
|
77
|
-
[0.8.2]: https://github.com/RokuCommunity/roku-debug/compare/v0.8.1...v0.8.2
|
|
94
|
+
## [0.8.2](https://github.com/RokuCommunity/roku-debug/compare/v0.8.1...v0.8.2) - 2021-05-28
|
|
78
95
|
### Changed
|
|
79
96
|
- 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
|
|
80
97
|
|
|
81
98
|
|
|
82
99
|
|
|
83
|
-
## [0.8.1] - 2021-05-04
|
|
84
|
-
[0.8.1]: https://github.com/RokuCommunity/roku-debug/compare/v0.8.0...v0.8.1
|
|
100
|
+
## [0.8.1](https://github.com/RokuCommunity/roku-debug/compare/v0.8.0...v0.8.1) - 2021-05-04
|
|
85
101
|
### Fixed
|
|
86
102
|
- Fix incorrect sgnodes shell prompt matching string. ([#31](https://github.com/rokucommunity/roku-debug/pull/31))
|
|
87
103
|
- Increase port 8080 commands max buffer size ([#31](https://github.com/rokucommunity/roku-debug/pull/31))
|
|
88
104
|
|
|
89
105
|
|
|
90
106
|
|
|
91
|
-
## [0.8.0] - 2021-05-03
|
|
92
|
-
[0.8.0]: https://github.com/RokuCommunity/roku-debug/compare/v0.7.0...v0.8.0
|
|
107
|
+
## [0.8.0](https://github.com/RokuCommunity/roku-debug/compare/v0.7.0...v0.8.0) - 2021-05-03
|
|
93
108
|
### Added
|
|
94
109
|
- port 8080 command support ([#29](https://github.com/rokucommunity/roku-debug/pull/29))
|
|
95
110
|
### Fixed
|
|
@@ -97,30 +112,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
97
112
|
|
|
98
113
|
|
|
99
114
|
|
|
100
|
-
## [0.7.0] - 2021-04-27
|
|
101
|
-
[0.7.0]: https://github.com/RokuCommunity/roku-debug/compare/v0.6.0...v0.7.0
|
|
115
|
+
## [0.7.0](https://github.com/RokuCommunity/roku-debug/compare/v0.6.0...v0.7.0) - 2021-04-27
|
|
102
116
|
### Added
|
|
103
117
|
- support for inspecting roXmlElement ([#23](https://github.com/rokucommunity/roku-debug/pull/23))
|
|
104
118
|
- support for capturing chanperf events ([#28](https://github.com/rokucommunity/roku-debug/pull/28))
|
|
105
119
|
|
|
106
120
|
|
|
107
121
|
|
|
108
|
-
## [0.6.0] - 2021-03-09
|
|
109
|
-
[0.6.0]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.10...v0.6.0
|
|
122
|
+
## [0.6.0](https://github.com/RokuCommunity/roku-debug/compare/v0.5.10...v0.6.0) - 2021-03-09
|
|
110
123
|
### Added
|
|
111
124
|
- rdb integration ([#25](https://github.com/rokucommunity/roku-debug/pull/25))
|
|
112
125
|
|
|
113
126
|
|
|
114
127
|
|
|
115
|
-
## [0.5.10] - 2021-02-16
|
|
116
|
-
[0.5.10]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.9...v0.5.10
|
|
128
|
+
## [0.5.10](https://github.com/RokuCommunity/roku-debug/compare/v0.5.9...v0.5.10) - 2021-02-16
|
|
117
129
|
### Fixed
|
|
118
130
|
- stack trace for brighterscript class methods appearing as `anon`
|
|
119
131
|
|
|
120
132
|
|
|
121
133
|
|
|
122
|
-
## [0.5.9] - 2021-01-19
|
|
123
|
-
[0.5.9]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.8...v0.5.9
|
|
134
|
+
## [0.5.9](https://github.com/RokuCommunity/roku-debug/compare/v0.5.8...v0.5.9) - 2021-01-19
|
|
124
135
|
### Fixed
|
|
125
136
|
- timing issue when shutting down debug session before the log processor has finish its job
|
|
126
137
|
- off-by-one location of "compile errors" when device validates XML components
|
|
@@ -132,44 +143,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
132
143
|
|
|
133
144
|
|
|
134
145
|
|
|
135
|
-
## [0.5.8] - 2020-10-23
|
|
136
|
-
[0.5.8]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.7...v0.5.8
|
|
146
|
+
## [0.5.8](https://github.com/RokuCommunity/roku-debug/compare/v0.5.7...v0.5.8) - 2020-10-23
|
|
137
147
|
### Fixed
|
|
138
148
|
- 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))
|
|
139
149
|
|
|
140
150
|
|
|
141
151
|
|
|
142
|
-
## [0.5.7] - 2020-10-06
|
|
143
|
-
[0.5.7]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.6...v0.5.7
|
|
152
|
+
## [0.5.7](https://github.com/RokuCommunity/roku-debug/compare/v0.5.6...v0.5.7) - 2020-10-06
|
|
144
153
|
### Fixed
|
|
145
154
|
- 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))
|
|
146
155
|
|
|
147
156
|
|
|
148
157
|
|
|
149
|
-
## [0.5.6] - 2020-09-30
|
|
150
|
-
[0.5.6]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.5...v0.5.6
|
|
158
|
+
## [0.5.6](https://github.com/RokuCommunity/roku-debug/compare/v0.5.5...v0.5.6) - 2020-09-30
|
|
151
159
|
### Fixed
|
|
152
160
|
- bug that prevented component library debug sessions from launching.
|
|
153
161
|
|
|
154
162
|
|
|
155
163
|
|
|
156
|
-
## [0.5.5] - 2020-09-28
|
|
157
|
-
[0.5.5]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.4...v0.5.5
|
|
164
|
+
## [0.5.5](https://github.com/RokuCommunity/roku-debug/compare/v0.5.4...v0.5.5) - 2020-09-28
|
|
158
165
|
### Fixed
|
|
159
166
|
- 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))
|
|
160
167
|
|
|
161
168
|
|
|
162
169
|
|
|
163
|
-
## [0.5.4] - 2020-09-25
|
|
164
|
-
[0.5.4]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.3...v0.5.4
|
|
170
|
+
## [0.5.4](https://github.com/RokuCommunity/roku-debug/compare/v0.5.3...v0.5.4) - 2020-09-25
|
|
165
171
|
### Changed
|
|
166
172
|
- fixed some false positive detections of `Can't continue` in the TelnetAdapter
|
|
167
173
|
- fixed version comparision links in the changelogs
|
|
168
174
|
|
|
169
175
|
|
|
170
176
|
|
|
171
|
-
## [0.5.3] - 2020-08-14
|
|
172
|
-
[0.5.3]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.2...v0.5.3
|
|
177
|
+
## [0.5.3](https://github.com/RokuCommunity/roku-debug/compare/v0.5.2...v0.5.3) - 2020-08-14
|
|
173
178
|
### Changed
|
|
174
179
|
- upgraded to [roku-deploy@3.2.3](https://github.com/rokucommunity/roku-deploy/blob/master/CHANGELOG.md#323---2020-08-14)
|
|
175
180
|
- throw exception when copying to staging folder and `rootDir` does not exist in the file system
|
|
@@ -177,8 +182,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
177
182
|
|
|
178
183
|
|
|
179
184
|
|
|
180
|
-
## [0.5.2] - 2020-07-14
|
|
181
|
-
[0.5.2]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.1...v0.5.2
|
|
185
|
+
## [0.5.2](https://github.com/RokuCommunity/roku-debug/compare/v0.5.1...v0.5.2) - 2020-07-14
|
|
182
186
|
### Changed
|
|
183
187
|
- upgraded to [roku-deploy@3.2.2](https://github.com/rokucommunity/roku-deploy/blob/master/CHANGELOG.md#322---2020-07-14)
|
|
184
188
|
### Fixed
|
|
@@ -186,16 +190,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
186
190
|
|
|
187
191
|
|
|
188
192
|
|
|
189
|
-
## [0.5.1] - 2020-07-11
|
|
190
|
-
[0.5.1]: https://github.com/RokuCommunity/roku-debug/compare/v0.5.0...v0.5.1
|
|
193
|
+
## [0.5.1](https://github.com/RokuCommunity/roku-debug/compare/v0.5.0...v0.5.1) - 2020-07-11
|
|
191
194
|
### Fixed
|
|
192
195
|
- Prevent debug session crash if target breakpoint file doesn't exist. [#10](https://github.com/rokucommunity/roku-debug/pull/10)
|
|
193
196
|
-Bug when converting source location to staging locations that incorrectly checked rootDir before sourceDirs. [#10](https://github.com/rokucommunity/roku-debug/pull/10)
|
|
194
197
|
|
|
195
198
|
|
|
196
199
|
|
|
197
|
-
## [0.5.0]
|
|
198
|
-
[0.5.0]: https://github.com/RokuCommunity/roku-debug/compare/v0.4.0...v0.5.0
|
|
200
|
+
## [0.5.0](https://github.com/RokuCommunity/roku-debug/compare/v0.4.0...v0.5.0)- 2020-07-06
|
|
199
201
|
### Added
|
|
200
202
|
- support for inline values during a debug session. [#8](https://github.com/rokucommunity/roku-debug/pull/8)
|
|
201
203
|
### Fixed
|
|
@@ -203,15 +205,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
203
205
|
|
|
204
206
|
|
|
205
207
|
|
|
206
|
-
## [0.4.0]
|
|
207
|
-
[0.4.0]: https://github.com/RokuCommunity/roku-debug/compare/v0.3.7...v0.4.0
|
|
208
|
+
## [0.4.0](https://github.com/RokuCommunity/roku-debug/compare/v0.3.7...v0.4.0)- 2020-07-02
|
|
208
209
|
### Changed
|
|
209
210
|
- Try to look up original function names for anonymous functions in call stack [#6](https://github.com/rokucommunity/roku-debug/issues/6)
|
|
210
211
|
|
|
211
212
|
|
|
212
213
|
|
|
213
|
-
## [0.3.7] - 2020-05-11
|
|
214
|
-
[0.3.7]: https://github.com/RokuCommunity/roku-debug/compare/v0.3.6...v0.3.7
|
|
214
|
+
## [0.3.7](https://github.com/RokuCommunity/roku-debug/compare/v0.3.6...v0.3.7) - 2020-05-11
|
|
215
215
|
### Changed
|
|
216
216
|
- upgraded to roku-deploy@3.1.1
|
|
217
217
|
- 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)
|
|
@@ -225,21 +225,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
225
225
|
|
|
226
226
|
|
|
227
227
|
|
|
228
|
-
## [0.3.6] - 2020-04-16
|
|
229
|
-
[0.3.6]: https://github.com/RokuCommunity/roku-debug/compare/v0.3.5...v0.3.6
|
|
228
|
+
## [0.3.6](https://github.com/RokuCommunity/roku-debug/compare/v0.3.5...v0.3.6) - 2020-04-16
|
|
230
229
|
### Fixed
|
|
231
230
|
- bug in socket debugger that would randomly try and run the `verifyHandshake()` method more than once during startup.
|
|
232
231
|
|
|
233
232
|
|
|
234
233
|
|
|
235
|
-
## [0.3.5] - 2020-04-10
|
|
236
|
-
[0.3.5]: https://github.com/RokuCommunity/roku-debug/compare/v0.3.4...v0.3.5
|
|
234
|
+
## [0.3.5](https://github.com/RokuCommunity/roku-debug/compare/v0.3.4...v0.3.5) - 2020-04-10
|
|
237
235
|
### Changed
|
|
238
236
|
- 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
|
|
239
237
|
|
|
240
238
|
|
|
241
239
|
|
|
242
|
-
## [0.3.4] - 2020-04-07
|
|
240
|
+
## [0.3.4](https://github.com/RokuCommunity/roku-debug/compare/v0.3.3...v0.3.4) - 2020-04-07
|
|
243
241
|
### Changed
|
|
244
242
|
- renamed `enableSocketDebugger` to `enableDebugProtocol`
|
|
245
243
|
### Fixed
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 RokuCommunity
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# roku-debug
|
|
2
2
|
A [Debug Adapter Protocol](https://microsoft.github.io/debug-adapter-protocol/) server (for editors like VSCode) and a socket adapter for Roku's [BrightScript Debug Protocol](https://developer.roku.com/en-ca/docs/developer-program/debugging/socket-based-debugger.md)
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
[](https://github.com/rokucommunity/roku-debug/actions?query=workflow%3Abuild)
|
|
5
|
+
[](https://coveralls.io/github/rokucommunity/roku-debug?branch=master)
|
|
6
|
+
[](https://npmcharts.com/compare/roku-debug?minimal=true)
|
|
7
|
+
[](https://www.npmjs.com/package/roku-debug)
|
|
8
|
+
[](LICENSE)
|
|
9
|
+
[](https://join.slack.com/t/rokudevelopers/shared_invite/zt-4vw7rg6v-NH46oY7hTktpRIBM_zGvwA)
|
|
10
10
|
|
|
11
11
|
## Contributors
|
|
12
12
|
[](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/roku-debug/links/0)[](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/roku-debug/links/1)[](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/roku-debug/links/2)[](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/roku-debug/links/3)[](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/roku-debug/links/4)[](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/roku-debug/links/5)[](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/roku-debug/links/6)[](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/roku-debug/links/7)
|
|
@@ -2,7 +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
|
+
import type { HighLevelType, RokuAdapterEvaluateResponse } from '../interfaces';
|
|
6
6
|
/**
|
|
7
7
|
* A class that connects to a Roku device over telnet debugger port and provides a standardized way of interacting with it.
|
|
8
8
|
*/
|
|
@@ -12,6 +12,12 @@ export declare class DebugProtocolAdapter {
|
|
|
12
12
|
constructor(host: string, stopOnEntry?: boolean);
|
|
13
13
|
private logger;
|
|
14
14
|
connected: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Due to casing issues with the variables request on some versions of the debug protocol, we first need to try the request in the supplied case.
|
|
17
|
+
* If that fails we retry in lower case. This flag is used to drive that logic switching
|
|
18
|
+
*/
|
|
19
|
+
private enableVariablesLowerCaseRetry;
|
|
20
|
+
private supportsExecuteCommand;
|
|
15
21
|
private compileClient;
|
|
16
22
|
private compileErrorProcessor;
|
|
17
23
|
private emitter;
|
|
@@ -21,6 +27,10 @@ export declare class DebugProtocolAdapter {
|
|
|
21
27
|
private nextFrameId;
|
|
22
28
|
private stackFramesCache;
|
|
23
29
|
private cache;
|
|
30
|
+
/**
|
|
31
|
+
* Get the version of the protocol for the Roku device we're currently connected to.
|
|
32
|
+
*/
|
|
33
|
+
get activeProtocolVersion(): string;
|
|
24
34
|
readonly supportsMultipleRuns = false;
|
|
25
35
|
/**
|
|
26
36
|
* Subscribe to various events
|
|
@@ -73,9 +83,9 @@ export declare class DebugProtocolAdapter {
|
|
|
73
83
|
/**
|
|
74
84
|
* Send command to step over
|
|
75
85
|
*/
|
|
76
|
-
stepOver(threadId: number): Promise<import("..").
|
|
77
|
-
stepInto(threadId: number): Promise<import("..").
|
|
78
|
-
stepOut(threadId: number): Promise<import("..").
|
|
86
|
+
stepOver(threadId: number): Promise<import("..").ProtocolEvent>;
|
|
87
|
+
stepInto(threadId: number): Promise<import("..").ProtocolEvent>;
|
|
88
|
+
stepOut(threadId: number): Promise<import("..").ProtocolEvent>;
|
|
79
89
|
/**
|
|
80
90
|
* Tell the brightscript program to continue (i.e. resume program)
|
|
81
91
|
*/
|
|
@@ -83,7 +93,7 @@ export declare class DebugProtocolAdapter {
|
|
|
83
93
|
/**
|
|
84
94
|
* Tell the brightscript program to pause (fall into debug mode)
|
|
85
95
|
*/
|
|
86
|
-
pause(): Promise<import("..").
|
|
96
|
+
pause(): Promise<import("..").ProtocolEvent>;
|
|
87
97
|
/**
|
|
88
98
|
* Clears the state, which means that everything will be retrieved fresh next time it is requested
|
|
89
99
|
*/
|
|
@@ -91,17 +101,17 @@ export declare class DebugProtocolAdapter {
|
|
|
91
101
|
/**
|
|
92
102
|
* Execute a command directly on the roku. Returns the output of the command
|
|
93
103
|
* @param command
|
|
104
|
+
* @returns the output of the command (if possible)
|
|
94
105
|
*/
|
|
95
|
-
evaluate(command: string, frameId?: number): Promise<
|
|
106
|
+
evaluate(command: string, frameId?: number): Promise<RokuAdapterEvaluateResponse>;
|
|
96
107
|
getStackTrace(threadId?: number): Promise<StackFrame[]>;
|
|
97
|
-
private
|
|
108
|
+
private getStackFrameById;
|
|
98
109
|
private cleanUpFunctionName;
|
|
99
110
|
/**
|
|
100
111
|
* Given an expression, evaluate that statement ON the roku
|
|
101
112
|
* @param expression
|
|
102
113
|
*/
|
|
103
114
|
getVariable(expression: string, frameId: number, withChildren?: boolean): Promise<EvaluateContainer>;
|
|
104
|
-
getVariablePath(expression: string): string[];
|
|
105
115
|
/**
|
|
106
116
|
* Cache items by a unique key
|
|
107
117
|
* @param expression
|