-
dbg (condition)
-
Breaks into the debugger. If a condition is provided, the debugger is only triggered if the condition evaluates to true.
Parameters:
- condition
(optional) If true, the debugger will be triggered.
-
c ()
-
Exit the debugger and continue execution.
Important: This is only to be called manually using the Codea sidepanel while the debugger is active.
-
l (nameOrLevel, level)
-
View local variables.
When called with no arguments this prints all local variables at the stack frame of the active 'dbg()' call.
Note: When listed, string values are omitted. Use l("<variable_name>", [stack_level]) to view the full value.
Important: This is only to be called manually using the Codea sidepanel while the debugger is active.
Parameters:
- nameOrLevel
(optional) Name of the variable to read OR stack level to list.
- level
(optional) Level to search for the given local variable name.
Usage:
-- Prints all local variables in the current stack frame
l()
-- Prints all local variables in the next stack frame up (1 == current frame)
l(2)
-- Prints the value of the local variable 'i'
-- in the first stack frame it is found.
l("i")
-- Prints the value of the local variable 'i' in the 3rd stack frame.
l("i", 3)
-
sl (name, value, level)
-
Set a local variable.
Important: This is only to be called manually using the Codea sidepanel while the debugger is active.
Generated by Codea+ AutoDoc
Last updated Sun Feb 26 01:03:59 2023