Time Travel to Right Before Error Occurs
sCrypt IDE v0.4.13 lets you launch a debugger that stops right at where sCrypt test fails. This will help developers to locate contract bugs tremendously.
In the latest IDE, when a test fails, there are two additional lines in the error message.
- Go to Source: it shows which line fails inside sCrypt code and also the last opcode executed. Right clicking on the link will take you directly to the offending line.
- Launch Debugger: Right clicking on the link will directly launch a debugger session, based on arguments in the test. The debugger will pause right before the error about to occur, allowing inspection of what caused the failure.