Stepping through code

suggest change

Once you’ve paused execution on a breakpoint, you may want to follow execution line-by-line to observe what happens. Open your browser’s Developer Tools and look for the Execution Control icons. (This example uses the icons in Google Chrome, but they’ll be similar in other browsers.)

Resume: Unpause execution. Shorcut:F8(Chrome, Firefox)

Step Over: Run the next line of code. If that line contains a function call, run the whole function and move to the next line, rather than jumping to wherever the function is defined. Shortcut : F10(Chrome, Firefox, IE/Edge), F6(Safari)

Step Into: Run the next line of code. If that line contains a function call, jump into the function and pause there. Shortcut : F11(Chrome, Firefox, IE/Edge), F7(Safari)

Step Out: Run the rest of the current function, jump back to where the function was called from, and pause at the next statement there. Shortcut : Shift + F11(Chrome, Firefox, IE/Edge), F8(Safari)

Use these in conjunction with the Call Stack, which will tell you which function you’re currently inside of, which function called that function, and so forth.

See Google’s guide on “How to Step Through the Code” for more details and advice.

Links to browser shortcut key documentation:

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Debugging:
* Stepping through code

Table Of Contents
11 Arrays
12 Objects
14 Classes
16 Map
17 Set
24 Loops
27 Date
29 Scope
30 AJAX
35 Cookies
41 JSON
44 Fetch
45 Modules
46 Screen
51 Debugging
64 Console
68 Symbols
73 Modals
76 Events
86 Proxy
89 WeakMap
90 WeakSet
102 Tilde