-
Notifications
You must be signed in to change notification settings - Fork 686
Add Exception handler to remote debugger #1693
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 Exception handler to remote debugger #1693
Conversation
| typedef struct | ||
| { | ||
| uint8_t type; /**< type of the message */ | ||
| uint8_t enable; /**< non-zero: enable stop at exception */ |
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.
Is this a boolean value? The description is not obvious to me.
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 after some minor changes.
jerry-core/debugger/jerry-debugger.c
Outdated
| if (exception_config_p->enable == 0) | ||
| { | ||
| JERRY_CONTEXT (debugger_flags) = (uint8_t) (JERRY_CONTEXT (debugger_flags) | ||
| | JERRY_DEBUGGER_VM_IGNORE_EXCEPTION); |
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.
I don't think this is the right style. Add a local variable if the line is too long.
tests/debugger/do_exception.js
Outdated
| print("exception handler configuration test") | ||
|
|
||
| function foo() { | ||
| try { |
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 don't use tab characters
JerryScript-DCO-1.0-Signed-off-by: Levente Orban orbanl@inf.u-szeged.hu
6fdea39 to
849dc69
Compare
|
@LaszloLango @zherczeg Updated the PR. |
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
In initial state the exception handler is enable. Use the
exceptioncommand with the 0 to disable the feature and 1 to enable it. Modified thehelpcommand test too.JerryScript-DCO-1.0-Signed-off-by: Levente Orban orbanl@inf.u-szeged.hu