Mark Miller
Mark Miller

Reputation: 309

Double breakpoint syntax in chrome debugger

I was debugging some code in Chrome and randomly some of the breakpoints I had started showing up like this

enter image description here

The syntax (IMO) would imply that it is breaking on both of those points, but it doesn't. In fact, it doesn't perform any different than a regular breakpoint. But I am left thinking, What is this? Why is it here? How did it appear?

FYI: My Google Chrome is up to date (Version 58.0.3029.110 (64-bit))

EDIT: the second one is clickable and is another breakpoint when clicked but the question still remains. What are they? And why did they just suddenly appear?

Upvotes: 0

Views: 176

Answers (1)

André Dion
André Dion

Reputation: 21708

The first one is a regular line break. The second one is a break on the call to clearErrorMessage. In this case they're really the same, but if you had chained function calls or nested functions here the multi-line breakpoint becomes incredibly useful.

Upvotes: 1

Related Questions