odra icon indicating copy to clipboard operation
odra copied to clipboard

Debugging and logging in CasperVM/Testnet

Open kubaplas opened this issue 2 years ago • 1 comments

To get more information for debugging and testing, we can run a code as a last line of endpoint. Of course it will be done by a macro and hidden behind a flag. It will store in storage for a later use:

  • Events emitted
  • Logs
  • Endpoint results If we save this data in a separate Debug/Logging contract, we can also:
  • restore cross call trace
  • restore exact events and log order

kubaplas avatar Nov 20 '23 12:11 kubaplas

I like the idea of producing call-trace in test environment. We should discuss this and produce some technical plan for it.

zie1ony avatar Nov 20 '23 14:11 zie1ony