Debugging Dynamic Memory Usage Errors Using HP WDB

Monitoring the Program Heap Growth.
The set heap-check heap-size command instructs WDB to stop the program and transfer
execution control to the user when the program attempts to increase the heap size of the program
by <num-bytes> or more. Example 9 (page 42) illustrates the use of this command.
Following is the syntax for the set heap-check heap-size command:
set heap-check heap-size <num-bytes>
Memory-Debugging Features of WDB 41