Code example JavaScript - Avoid use of debugger statements
Code examples
Noncompliant code
for (i = 1; i<6; i++) { // Print i to the Output window. Debug.write("current loop index is " + i); // Wait for user to resume. debugger; }
Compliant code
for (i = 1; i<6; i++) { // Print i to the Output window. Debug.write("current loop index is " + i); }