Here is a helpful resource: https://msdn.microsoft.com/en-us/library/0bwt76sk%28v=vs.94%29.aspx.
If you need to pause execution at a certain point in your code, you can use debugger statements. This functionality is similar to setting breakpoints.
for(i = 1; i<5; i++) {
// Print i to the Output window.
Debug.write("loop index is " + i);
// Wait for user to resume.
debugger
}
In some cases, you may encounter a scenario where a specific page is only visible during debug mode when the browser halts execution. In static mode, this page may load and close quickly without being seen.
For example, if your application flows from login.html -> inProgress.html -> homepage.html, and there is a script on inProgress.html that runs for only a brief moment (e.g., 3 milliseconds) and goes unnoticed by the user, you may need to enter debug mode to observe this script in action.