Breakpoint Type | Use This When You Want To Pause... |
---|---|
Line-of-code | On an exact region of code. |
Conditional line-of-code | On an exact region of code, but only when some other condition is true. |
DOM | On the code that changes or removes a specific(特殊的) DOM node, or its children. |
XHR | When an XHR URL contains a string pattern. |
Event listener | On the code that runs after an event, such as click , is fired. |
Exception | On the line of code that is throwing a caught or uncaught exception(例外). |
Function | Whenever a specific function is called. |