Debugging Automated Tests in TestComplete
After testers create a new automated test, they should makes sure that it works as expected and does not have errors. TestComplete includes a powerful test debugger that allows automated testers to easily troubleshoot automated tests and quickly fix any errors in them.
TestComplete’s debugger supports both keyword tests and scripts:

Debugging Keyword Tests

Debugging Automated Test Scripts
The debugger provides all modern debugging features like:
Using breakpoints (both ordinary and conditional)
Pausing the automated test execution manually
Watching variable values
Viewing local variables (variables available at the current execution scope)
Evaluating expressions and inspecting objects
Stepping through automated tests and individual commands
Running an automated test to the currently selected command
Skipping a part of the automated test up to the selected command
Viewing the call stack of automated test routines
Keyword test debugging and automated test script debugging are seamlessly integrated: if you step through a keyword test that calls an automated test script routine, the debugger enters the routine and goes through the script statements and vice versa.
The debugger can be turned off after the automated tests work correctly and turned on once a tester needs the debugging features again.