-
Notifications
You must be signed in to change notification settings - Fork 9
Support the scope and variables requests #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support the scope and variables requests #30
Conversation
e7fd64e to
4652cf8
Compare
ee558b7 to
8aa80a6
Compare
|
The Jerryscript PR has just landed. I've removed the WIP flag. |
LaszloLango
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
src/IotjsDebugger.ts
Outdated
| const scopesArray: Array<JerryScopeChain> = await this._protocolhandler.requestScopes(); | ||
| const scopes = new Array<Scope>(); | ||
|
|
||
| for (let scope of scopesArray) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try to use const for the for loop variable.
src/IotjsDebugger.ts
Outdated
| const id = this._variableHandles.get(args.variablesReference); | ||
| const scopeVariables: Array<JerryScopeVariable> = await this._protocolhandler.requestVariables(Number(id)); | ||
|
|
||
| for (let variable of scopeVariables) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
Retrieve the list of variables at the current scope and show them under the variables pane. IoT.js-VSCode-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
8aa80a6 to
b727469
Compare
rtakacs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Retrieve the list of variables at the current scope and show them under the variables pane.
This will be in WIP status until this Jerryscript PR does not landed.