trace - brombres/Rogue GitHub Wiki

Syntax

trace
trace expression [expression ...]
@trace expression [...]

Description

Variation Description
trace Prints the name of the current method, filename, and source line.
trace expression ... Prints the source position, the source code for the expression, and the value of the expression.
@trace expression ... Prints expressions and expression values but omits the source position.

Example

# In Test.rogue
local (x,y) = (3,4)
trace x y   # [on_launch() Test.rogue:3] x:3 y:4
@trace x y  # x:3 y:4