From 4b35626ad3076165d64283cf68eceb5a99eba74a Mon Sep 17 00:00:00 2001 From: Ian Macalinao Date: Tue, 9 Aug 2022 08:00:19 +0900 Subject: [PATCH] Fix docs on debugging (#3829) --- doc/src/build/move/debug-publish.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/src/build/move/debug-publish.md b/doc/src/build/move/debug-publish.md index 251273fe3aec7..abbcb0475786a 100644 --- a/doc/src/build/move/debug-publish.md +++ b/doc/src/build/move/debug-publish.md @@ -3,21 +3,21 @@ title: Debug and Publish the Sui Move Package --- ## Debugging a package -At the moment there isn't a yet debugger for Move. To help with debugging, however, you could use `Std::Debug` module to print out arbitrary value. To do so, first import the `Debug` module: +At the moment there isn't a yet debugger for Move. To help with debugging, however, you could use `std::debug` module to print out arbitrary value. To do so, first import the `debug` module: ``` -use Std::Debug; +use std::debug; ``` Then in places where you want to print out a value `v`, regardless of its type, simply do: ``` -Debug::print(&v); +debug::print(&v); ``` or the following if v is already a reference: ``` -Debug::print(v); +debug::print(v); ``` -`Debug` module also provides a function to print out the current stacktrace: +The `debug` module also provides a function to print out the current stacktrace: ``` -Debug::print_stack_trace(); +debug::print_stack_trace(); ``` Alternatively, any call to `abort` or assertion failure will also print the stacktrace at the point of failure.