Debug Menu Commands In QTP

Debug Menu Commands


You can debug the steps in your component and any associated function library using the following Debug menu commands:


Sl No
Command

Shortcut Key

Function

1

Pause

Pauses the debug session.

2

Step Into

F11

Runs only the current line of the script. If the current line calls a method, the method is displayed in the view but is not performed.

3

Step Over

F10

Runs only the current line of the script. When the current line calls a method, the method is performed in its entirety, but is not displayed in the view.

4

Step Out

Shift+F11

Runs to the end of the method then pauses the run session. (Available only after running a method using Step Into)
 5
Run to Step

Ctrl+F10

Runs until the current step.
 6
Debug from Step

Runs from the selected step instead of the start of the component.
 7
Add to Watch

Ctrl+T

Adds the selected item to the Watch tab.

8

Insert/Remove Breakpoint

F9

Sets or clears a breakpoint in the component.

9

Enable/Disable Breakpoint

Ctrl+F9

Enables or disables a breakpoint in the component.

10

Clear All Breakpoints

Ctrl+Shift+F9

Deletes all breakpoints in the component.

11

Enable/Disable All Breakpoints

Enables or disables all breakpoints in the component.



Some of the Debug commands are also available from the Debug toolbar.

0 comments:

Post a Comment