Customizing the program controls

The program controls allow you to control the building and execution of your Purify'd application. To display the program controls toolbar, select View > Program controls.

Each program control button invokes a default command. For information about editing the scripts for the program controls, click image\SHORTCUT.gif.

image\make.gif

Runs the shell command pure_run make <program-name>, where <program-name> is the name of the Purify'd program currently being viewed.

The Make button uses the pure_run script to run the command in a new window. The terminal window remains open after the make is completed. To close the window, press RETURN. You can change how the new window is created by editing the pure_run script.

image\run.gif

Starts a new run of the Purify'd program currently being viewed. The first time you click Run, the command is filled in with the previous arguments to the program, if known. If Purify is currently viewing a running program, the Run button is inactive.

You can change the behavior of the Run button by editing the pure_run script.

image\debug.gif

Starts a debugger on the currently viewed Purify'd program, in a new terminal window. If the program is currently running, the debugger attaches to it. You can specify the debugger you want Purify to start by editing the pure_debug script.

image\kill.gif

Runs the shell command kill %p to kill the currently running Purify'd program. The Kill button is active only when a Purify'd program is running. Each time this dialog is used, the %p is expanded into the current process id (pid).

To send a different signal to your program, you can modify the command before clicking OK. For example, to terminate a program with extreme prejudice, modify the command to be kill -9 %p.

image\editbutton.gif

Starts an editor on the specified file in a new terminal window. You can specify the editor you want Purify to start by editing the pure_edit script.

Note that the Edit button image\edit.gif also uses the pure_edit script.