Find out what part of your code is causing a behavior in the browser. For example, you can pause when the window scroll position is updated or when cookie data is written.
Either use the UI or add breakpoints from the console:
breakpoints.debugScroll()
breakpoints.debugPropertySet(obj, "propertyName", "trace") // trace instead of pausing
breakpoints.debugCookieWrites(function(){ /* whatever */ })
breakpoints.resetLastBreakpoint()
Learn more about the Console API.
Example trace message:
Just paste the contents of this file in the console.
Download the module from NPM:
npm install javascript-breakpoint-collection
Then load the module:
var breakpoints = require("javascript-breakpoint-collection")
See Contributing.md.