-
Notifications
You must be signed in to change notification settings - Fork 688
Add finish debugger command. #2240
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
Add finish debugger command. #2240
Conversation
| */ | ||
| JERRY_STATIC_ASSERT (JERRY_DEBUGGER_MESSAGES_OUT_MAX_COUNT == 27 | ||
| && JERRY_DEBUGGER_MESSAGES_IN_MAX_COUNT == 18 | ||
| && JERRY_DEBUGGER_MESSAGES_IN_MAX_COUNT == 19 |
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.
Please increase the ERRY_DEBUGGER_VERSION number.
| JERRY_DEBUGGER_CHECK_PACKET_SIZE (jerry_debugger_receive_type_t); | ||
|
|
||
| JERRY_DEBUGGER_SET_FLAGS (JERRY_DEBUGGER_VM_STOP); | ||
| JERRY_CONTEXT (debugger_stop_context) = JERRY_CONTEXT (vm_top_context_p->prev_context_p); |
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.
It is worth a comment to describe the NULL case (and why this code is correct).
jerry-debugger/jerry-client-ws.html
Outdated
| " continue|c - continue execution\n" + | ||
| " step|s - step-in execution\n" + | ||
| " next|n - execution until the next breakpoint\n" + | ||
| " finish|f - continue running just after function in the current stack frame returns\n" + |
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.
comment: continue running until the current function returns
jerry-debugger/jerry-client-ws.py
Outdated
| do_n = do_next | ||
|
|
||
| def do_finish(self, args): | ||
| """ Continue running just after function in the current stack frame returns """ |
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.
| finish | ||
| step | ||
| finish | ||
| continue |
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.
last one could be a finish as well
|
@zherczeg I've updated the PR based on your requests. |
zherczeg
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
With this command the engine continue running just after the function in the current stack frame returns. JerryScript-DCO-1.0-Signed-off-by: Imre Kiss kissi.szeged@partner.samsung.com
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
|
For future changes: I think it would have been nicer to not shuffle the existing message enums. |
With this command the engine continue running just after the function
in the current stack frame returns.
JerryScript-DCO-1.0-Signed-off-by: Imre Kiss kissi.szeged@partner.samsung.com