PadCodedocs

Log

Writes a value to Preview's debugger, to check what's going on. People using the app don't see it.

Category: Logic

#When to use it

Use it while you build, to check a value or see whether a step ran.

#Example

After a Set Value that works out a total: Log with Message: Total is {total}.

#Good to know

  • It shows only in Preview's debugger (the ladybug button), in order with the steps. People using your app never see it.

#Add it

Select a view, open the Inspector's Actions tab, pick when it runs, tap Add action and choose Log (under Logic). Tap the step to open its settings.

#Settings

SettingWhat it doesKindDefault
MessageWhat to write.Any valueRequired

#See also