The key is to set a breakpoint. This will be by clicking to the left side of your code on the line you want the debug playback to pause on.
Typically, a dot (often red) will display on that line to let you know where you have set a breakpoint. You my have more than one breakpoint in your code.
The pause in the breakpoint is helpful to let you see what values variables will have, the current call stack to make sure you got to the code in the manner you expected, and more.
Once Your Code Hits the Breakpoint
Once your code hits a breakpoint, when running in debug mode, it will appear to stop running. In reality, you have just paused your code playback.
At this point, you can typically, step through your code, meaning you can execute one command at a time, checking variable values, etc.
You can also continue which will allow your code to continue on until it either ends, or hits another breakpoint.
You can stop, which will force and exit for your application.
You can restart your code, which will reload the application (compiling if necessary) and start running from the beginning again.
Stepping Through Your Code was originally found on Access 2 Learn