Skip to content

Add delete all breakpoints feature to debugger (javascript) #1628

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

Merged
merged 1 commit into from
Feb 28, 2017

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 [email protected]

JerryScript-DCO-1.0-Signed-off-by: Levente Orban [email protected]
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