-
Hello, how can I debug, log and trace the near contracts? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@idirall22 Thanks for kicking off this discussion! Without a specific example of what you are trying to accomplish I can only given general advice. NEAR contracts have a logging function exposed as a wasm host function and you can see the logs of a transaction in the block explorer or from the NEAR CLI. A good place to start if you're looking for local debugging tools (as opposed to testnet) would be with the NEAR documentation. |
Beta Was this translation helpful? Give feedback.
-
Thank you, @birchmd this is what I need :). |
Beta Was this translation helpful? Give feedback.
@idirall22 Thanks for kicking off this discussion!
Without a specific example of what you are trying to accomplish I can only given general advice. NEAR contracts have a logging function exposed as a wasm host function and you can see the logs of a transaction in the block explorer or from the NEAR CLI.
A good place to start if you're looking for local debugging tools (as opposed to testnet) would be with the NEAR documentation.