Skip to content

Conversation

@polaroi8d
Copy link
Contributor

Now you can able to use delete all command, to clear the breakpoints from the whole project.

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

JerryScript-DCO-1.0-Signed-off-by: Levente Orban orbanl@inf.u-szeged.hu
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

@LaszloLango LaszloLango added the debugger Related to the debugger label Feb 28, 2017
appendLog("No active breakpoints.")
}
}

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this form would be better, whats your opinion?
activeBreakpoints.length != 0 ? activeBreakpoints.splice(0) : appendLog("No active breakpoints.")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You can't use splice() function in the activeBreakpoints object.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's my bad, I thought that activeBreakpoints is an array.

if (!found)
{
appendLog("No active breakpoints.")
}
Copy link
Member

Choose a reason for hiding this comment

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

Isn't there an easier way to check whether activeBreakpoints is empty?

Copy link
Contributor

@robertsipka robertsipka Feb 28, 2017

Choose a reason for hiding this comment

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

You can check with Object.keys(acviteBreakpoints).length

Copy link
Member

Choose a reason for hiding this comment

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

That is more complicated. Keep the bool then.

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

@robertsipka robertsipka merged commit e993ee6 into jerryscript-project:master Feb 28, 2017
@polaroi8d polaroi8d deleted the clear_all branch March 17, 2017 06:54
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.

4 participants