Debugging Dojo with Walnut

Note: We assume that the Dojo environment is set up with a running Slot instance. For setup guidance, refer to the docs.

💡 To get the step-by-step debugger working, you need to verify your contracts on Walnut. Check the Verification Sozo Docs for more information.

Debug transactions on Slot

  1. Add your custom network by following the steps in the Custom Network section.

  2. Once the network is added, search for your transaction using the Walnut search bar at the top.

Debug with sozo execute

To debug transactions with sozo run sozo execute --walnut :

  sozo execute dojo_starter-actions move_character 2 --wait --walnut

A link to the Walnut Debugger will appear in the Terminal for each transaction.

  Debug transaction with Walnut: https://app.walnut.dev/transactions?rpcUrl=https%253A%252F%252Fapi.cartridge.gg%252Fx%252Fdeploymentslot2%252Fkatana&txHash=0x04b16a16129402d3b4854c4191505d3b3fd6e042b3a59eeb34f0fdc78674a748

  Transaction hash: 0x04b16a16129402d3b4854c4191505d3b3fd6e042b3a59eeb34f0fdc78674a748