Home Contents | # mtd16:trace | Mtd16 | Core4 Lua Commands

## SYNOPSIS

1. text = msg:trace()
2. text = tostring(msg)

## DESCRIPTION

The trace() command converts msg into human readable text useful for debugging. It is a shortcut for mtd16:toText(nil, "NF").

The same call is made when calling a message in string context.

## RETURN VALUE

A human readable string representation of msg.

## NOTES

The output of this function is meant for human consumption. Do not automatically process this text. If you need machine readable text, please read the documentation on mtd16:toText() first!.

## SEE ALSO

#mtd16, mtd16.answerCode, mtd16.fromData, mtd16.fromText, mtd16.isNestedTag, mtd16.lutType, mtd16.new, mtd16.tagCode, mtd16.tagName, mtd16.tagNumber, mtd16.tagType, mtd16:append, mtd16:appendMessageCode, mtd16:contains, mtd16:get, mtd16:getNumber, mtd16:getString, mtd16:isEmpty, mtd16:isValid, mtd16:messageCode, mtd16:nextMessageCode, mtd16:pairs, mtd16:rewind, mtd16:tags, mtd16:toData, mtd16:toText