Move Trace DebuggingProvides the ability to visualize trace files, which can be generated for a given package when running Move unit tests or replaying on-chain transactions with the replay tool. These trace files contain information about operations executed during a Move unit test run or during an on-chain transaction run (including PTB commands). This extension leverages an implementation of the Debug Adapter Protocol (DAP) that analyzes execution traces and presents them to the IDE client (in this case a VSCode extension) in a format that the client understands and can visualize using a familiar debugging interface. Supported featuresCurrently we support inspection of native PTB commands and trace-debugging of Move code which supports the following features:
Note that support for trace-debugging macros and enums is limited at this point - stepping through macros or code related to enums may result in somewhat unexpected results due to how these constructs are handled internally by the Move execution framework. In particular, variable value tracking may be affected when trace-debugging these constructs. Work is ongoing to improve state-of-the-art - improvement suggestions and bug reports files as issues against Sui's GitHub repository are greatly appreciated. How to Install
How to useA detailed description of the debugger is available as part of the Sui documentation, including comprehensive usage instructions. |