Rich Standbrook
Rich Standbrook

Reputation: 648

Breakpoints ignored in Safari 7

I'm having trouble debugging JavaScript in Safari 7, the breakpoints I put in are just being ignored. I know you enable/disable all break points and they are definitely enabled. It just isn't stopping code execution at all!

Anyone else experienced this? Any thoughts?

Upvotes: 18

Views: 8896

Answers (3)

user5234695
user5234695

Reputation: 1

Try editing the breakpoint, and adding e.preventDefault() as code to be evaluated when the breakpoint matches.

Upvotes: 0

Luke Melia
Luke Melia

Reputation: 8389

A reboot of Safari fixed this issue for me.

Upvotes: 2

falko
falko

Reputation: 1457

Maybe you disable breakpoints: https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/Debugger/Debugger.html

By clicking the breakpoint icon in the Breakpoints pane, you disable all breakpoints. The breakpoint locations are still saved, but JavaScript runs as if no breakpoints are set. Disabled breakpoints have a grayed-out appearance,

Disable breakpoints

Enable breakpoints

Upvotes: 21

Related Questions