odra
odra copied to clipboard
Debugging and logging in CasperVM/Testnet
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
I like the idea of producing call-trace in test environment. We should discuss this and produce some technical plan for it.