-->Debug Options

You can set breakpoints, and you can temporarily enable and disable them. After you finish using them, you can remove them from your test or function library.
You can use breakpoints to:
1.suspend a run session and inspect the state of your site or application
2.Mark a point from which to begin stepping through a test or function library using the step commands
The debug options available in QTP are:
1.Break Points (F9)
2.Step Into (F11)
3.Step Over (F10)
4.Step Out
5.Watch list
6.Pause
7.Run from step
8.Run to step
Note: Breakpoints are applicable only to the current QuickTest session and are not saved with your test or function library.
Break Point:
You can use breakpoints to instruct QuickTest to pause a run session at a predetermined place in a test or function library. QuickTest pauses the run when it reaches the breakpoint, before executing the step.
Steps to insert the Break point:
I.Place the cursor where the break point needs to be inserted
II.Select Debug --> Insert/Remove break point (Alternatively right click on the line & select ‘Insert/Remove’ break point)
or
Click in the left margin of a step in the test or function library where you want the run to stop.
III.We can insert multiple break points in one script.

Step Into:
Choose Debug > Step Into, click the Step Into button , or press F11 to run only the current line of the active test or function library. If the current line of the active test or function library calls another action or a function, the called action/function is displayed in the QuickTest window, and the test or function library pauses at the first line of the called action/function.

Step Over:
Choose Debug > Step Over, click the Step Over button , or press F10 to run only the current step in the active test or function library. When the current step calls another action or a user-defined function, the called action or function is executed in its entirety, but the called action or function script is not displayed in the QuickTest window. This is used to execute the script line by line.

Step Out:
Choose Debug > Step Out, click the Step Out button, or press Shift+F11 only after using Step Into to enter an action or a user-defined function. Step Out runs to the end of the called action or user-defined function, then returns to the calling test or function library and pauses the run session.

Watch List:
1.Select View --> Debug viewer
2.Add the required variables to the watch list
3.Provide the break point in the 1st line of the script
4.Execute the script step by step
5.Analyze the values of the execution during playback

Pause:
You can temporarily suspend a run session by choosing Debug > Pause or by clicking the Pause button. A paused test or function library stops running when all previously interpreted steps have been run.