![]() |
![]() |
![]() |
![]() |
$set_trace and $unset_trace
Synopsis
$set_trace list
$unset_trace listDescription
$set_verbose and $unset_verbose turn the trace option on or off for selected types of Object Manager operations, as indicated by list .
Tracing is performed only on objects with the trace attribute. A combination of the trace mode and the $set_verbose functions operation can help you determine which method is modifying or accessing a particular object. You can also use your source debugger to stop in the function OM_stop_here which is called whenever a trace message is printed.
list is one or more space-separated keywords indicating a type of operation:
destroy decrement the reference count on an object
subobj an add_subobj or del-subobj
notify any add or delete notify
Examples
OM(SingleWindowApp) -> $unset_trace all
OM(SingleWindowApp) -> int+trace x;
OM(SingleWindowApp) -> x = 3;
OM(SingleWindowApp) -> $set_trace set_val get_val
OM(SingleWindowApp) -> int y => x;
OM(SingleWindowApp) -> $int y
traced object: Root.Applications.SingleWindowApp.x on operation: get_val
3
OM(SingleWindowApp) -> x = 20;
traced object: Root.Applications.SingleWindowApp.x on operation: set_val
![]() |
![]() |
![]() |
![]() |