In the web inspector javascript debugger, you can set breakpoints for line numbers in a script. As far as I can tell, however, you cannot set breakpoints for DOM functions. For example, I would like to set a breakpoint for "window.open()" to pause whenever that function is called. It would be an excellent enhancement to allow setting breakpoints for DOM functions in the javascript debugger.
<rdar://problem/6971177>
*** Bug 34500 has been marked as a duplicate of this bug. ***
*** Bug 34499 has been marked as a duplicate of this bug. ***