ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. inspect

Function

inspect

Server and clientMiscellaneousTrilogy Hub only

Turns any value into readable text: tables are expanded, cycles are detected and elements are shown as element:type[id]. Useful when hunting bugs.

Syntax

string inspect(mixed value)

Arguments

valuemixed
The value.

Returns

A description of the value.

Example

outputServerLog(inspect({ hp = 100, pos = { 1, 2, 3 } }))

See also