Pike v8.1 release 6

Method Debug.gc_set_watch()


Method gc_set_watch

void gc_set_watch(array|multiset|mapping|object|function(:void)|program|string x)

Description

Sets a watch on the given thing, so that the gc will print a message whenever it's encountered. Intended to be used together with breakpoints to debug the garbage collector.

Note

This function only exists if the Pike runtime has been compiled with RTL debug.