The HEAP_DEBUG sets a breakpoint on a heap variable (either a pointer or an object) using the heap variable ID. When IDL attempts to create a heap variable (either a pointer or an object) with the matching heap ID number, IDL will create the variable and then halt execution. This is useful when you are trying to debug an application that is leaking pointers or objects, and you know the heap ID numbers from the HELP,/HEAP command.

Tip: You can use the .RESET command to ensure that you always get the same ID number during multiple runs of your program.

Syntax


HEAP_DEBUG, Id

Arguments


Id

An integer giving the heap identifier number at which to halt execution.

Keywords


None

Version History


9.3

Introduced

See Also


HEAP_GC, HEAP_REFCOUNT