Nasal library/debug: Difference between revisions

Jump to navigation Jump to search
Doc proptrace()
(→‎Functions: Doc propify())
(Doc proptrace())
Line 256: Line 256:


=== proptrace() ===
=== proptrace() ===
{{Nasal doc
|syntax = debug.proptrace([root[, frames]]);
|text = Traces changes to a given part of the [[property tree]]. It flags up when a child node is added, the value of a node is set, and a node is deleted.
|param1 = root
|param1text = Optional <code>props.Node</code> object, a <code>prop</code> ghost, or a string, all pointing to a property. Defaults to the root of the property tree.
|param2 = frames
|param2text = Number of frames to trace for. Defaults to 2.
|example1 = var n = props.globals.getNode("/demo", 1);
debug.proptrace("/demo", 10);
var c = n.addChild("foo")
c.setIntValue(12)
c.remove();
}}
=== rank() ===
=== rank() ===
{{Nasal doc
|syntax = debug.rank();
|text =
|param1 =
|param1text =
|example1 =
}}
=== string() ===
=== string() ===
{{Nasal doc
|syntax = debug.string();
|text =
|param1 =
|param1text =
|example1 =
}}
=== tree() ===
=== tree() ===
{{Nasal doc
|syntax = debug.tree();
|text =
|param1 =
|param1text =
|example1 =
}}
=== warn() ===
=== warn() ===
{{Nasal doc
|syntax = debug.warn();
|text =
|param1 =
|param1text =
|example1 =
}}


{{Nasal namespaces}}
{{Nasal namespaces}}

Navigation menu