Add a breakpoint to the appropriate location, run the debugger, when stopped at the breakpoint step through the code line by line.