Skip to content

Conversation

@polaroi8d
Copy link
Contributor

In initial state the exception handler is enable. Use the exception command with the 0 to disable the feature and 1 to enable it. Modified the help command test too.

JerryScript-DCO-1.0-Signed-off-by: Levente Orban orbanl@inf.u-szeged.hu

typedef struct
{
uint8_t type; /**< type of the message */
uint8_t enable; /**< non-zero: enable stop at exception */
Copy link
Contributor

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.

Copy link
Member

@zherczeg zherczeg left a 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.

if (exception_config_p->enable == 0)
{
JERRY_CONTEXT (debugger_flags) = (uint8_t) (JERRY_CONTEXT (debugger_flags)
| JERRY_DEBUGGER_VM_IGNORE_EXCEPTION);
Copy link
Member

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.

print("exception handler configuration test")

function foo() {
try {
Copy link
Contributor

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
@polaroi8d
Copy link
Contributor Author

@LaszloLango @zherczeg Updated the PR.

Copy link
Contributor

@LaszloLango LaszloLango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zherczeg zherczeg merged commit 21cec3e into jerryscript-project:master Mar 28, 2017
@polaroi8d polaroi8d deleted the exception_handler branch April 4, 2017 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

debugger Related to the debugger

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants