Nasal library/debug: Difference between revisions

Jump to navigation Jump to search
m
Add warning regarding dump to breakpoint.new
(Add documentation for class Breakpoint)
m (Add warning regarding dump to breakpoint.new)
Line 361: Line 361:
|text = create a breakpoint object
|text = create a breakpoint object
|param1 = label
|param1 = label
|param1text = a string to name the breakpoint, used in property path and in output
|param1text = A string to name the breakpoint, used in property path and in output.
|param2 = dump_locals
|param2 = dump_locals
|param2text = 0 or 1, passed to backtrace to control printing of namespaces (variables)
|param2text = 0 or 1, passed to backtrace to control printing of namespaces (variables). Warning: dumping big namespaces can cause a stack overflow and crash the nasal script.
|example1 = var myBP = debug.Breakpoint.new("myLabel", 0);
|example1 = var myBP = debug.Breakpoint.new("myLabel", 0);
}}
}}
Line 371: Line 371:
|text = enable tracing  
|text = enable tracing  
|param1 = tokens
|param1 = tokens
|param1text = number of traces allowed; each hit will consume one token, tokens < 1 means no more traces. Tokens can be also set via the property browser at runtime.
|param1text = Number of traces allowed; each hit will consume one token, tokens < 1 means no more traces. Tokens can be also set via the property browser at runtime.
}}
}}
=== disable() ===
=== disable() ===
295

edits

Navigation menu