Debugger : Debugger Commands : GO Command

GO Command

The GO command instructs the prototype to execute. If the prototype was suspended, GO resumes execution. The syntax of the GO command is:

Pdb > GO

As a result, a series of successive steps is executed until a breakpoint is encountered. The Debugger then displays a message:

Stopped at breakpoint BP_NAME on event :
EVENT_NAME

 

Several messages may appear when several events, on which you have set breakpoints, occur simultaneously (in the same step).

You can use GO not only to resume execution after the prototype was suspended, but to start prototype execution. You usually begin the debugging session by defining the required breakpoints and then issue the GO command. The difference between using the STEP command for this purpose is that, here, the execution is not suspended after entering the default configuration.

The GO command can also be used without any breakpoints. This option is useful when you want to perform a prototype run containing debugging facilities without suspension of the execution, check of object’s status, etc. Though any run of such code causes activation of the Debugger, you can perform such a run by typing GO as the first and only command in the session.

In all cases, when you issue a GO command, the execution continues until one of the following occurs: