Enabling just-in-time debugging

With Purify's just-in-time (JIT) debugging, you can use your debugger to investigate errors even when you run your application from outside the debugger. You can have Purify automatically attach a debugger to your application when selected types of Purify messages are reported, or have Purify ask you if you want to start a debugger at the time of the error.

You can also use JIT debugging to start your debugger when it encounters a watchpoint message. Purify stops just before the watchpoint.

If your Purify'd program is already running under a debugger, do not enable JIT debugging. Attempting to do so will cause the program to fail.

To enable just-in-time debugging:

  1. Select Options > JIT Debug. Purify opens the Debugging Options dialog:

  1. Select the types of messages for which you want Purify to start your debugger: fatal and corrupting messages, or warning messages, or watchpoints.

  2. Select the debugger you want Purify to start.

  3. You can also type command-line arguments for your debugger.

    You can also enable JIT debugging using the -jit-debug option. You can change the list of available debuggers, and Purify's interface to them, using your ~/.purify.Xdefaults file and the pure_jit_debug script which is located in the Purify installation directory.

    For general information about modifying Purify scripts, click