Assessment reports>Initia>Threat Model>Module debug.move

Module debug.move

The native functions when not in testing mode will act as a no-op (no operation) for all of the following.

Function: print

This function can be used by any caller to print a value to the console during testing.

Inputs

Full prototype: public fun print<T>(x: &T)

  • Type T

    • Validation: None.

    • Impact: Determines the type of input x to be printed.

  • x: &T

    • Validation: None.

    • Impact: The value to be printed.

Function: print_stack_trace

This function can be used by any caller to print a stack trace to the console during testing.

Inputs

Full prototype: public fun print_stack_trace()

Zellic © 2024Back to top ↑