Debug menu

Debug menu (debugger)
Menu Item Press Description
Set Program Arguments
n/a
Opens a dialog box to enter arguments for your program when it runs. It allows you to control input and output redirection to and from your program. See setargs and r. See the table "Set Program Arguments dialog box" below.
Go

F5
Starts running a program which has not been started or continues executing one which has stopped. This command cannot be used to start tasks on VxWorks systems. See runtask for starting tasks on these systems.
Restart

Starts running or restarts the currently debugged program with preset arguments, if any. See the command r.
Halt

Halts the current program. See halt.
Kill Process
n/a
Kills the current program. See k.
Step
F11
Executes single statements and steps into procedure calls. See s.
Next
F10
Executes single statements and steps over procedure calls. See n.
Return
F9
Continues to the end of the current subroutine and stops in the calling routine after returning to it. See cu.
Send Signal
n/a
Opens a dialog box to let you specify the signal name and then sends a signal to the current program. For signal names, see the l command with the z option. See l (lowercase L).
Add Assertion
n/a
Opens a dialog box to let you specify a logic expression. When you click OK, the debugger creates an assertion so that whenever the logic expression becomes true, it stops the running process and prints a message to indicate that the assertion is hit. See a and assert.
Set Watchpoint
n/a
Opens a dialog box to let you create a watch point. See watchpoint.
Remove All Breakpoints
n/a
Removes all software breakpoints from the current program.

The following table shows the components of the Set Program Arguments dialog box:
Set Program Arguments dialog box
Item Description
Input File
This is a file on the host system which will be used as input to your program.
Output File
This is a file on the host system which will capture output from your program.
Program arguments
These are the arguments passed to the debugged program the next time you run it without specifying any arguments. For example, if you click the Go or Restart button, or if you execute the r command, etc. If you specify any arguments in the next execution, for example through the r command, then the existing arguments will be replaced by the new ones.
Run
Click this button to run your program with the given arguments.
Set
Click this button to set the given arguments as the default for this session. See r.

Related topic:


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.