Early CashScript debugging vs modern CashScript debugging (part 2)
Watch on YouTube (opens in a new tab)- Speaker
- RoscoKalis
- Event
- BCH Bliss 2025
- Published
- Length
Transcript
Now, if something fails in your smart contract, it shows you exactly which require statement failed. So, you know exactly where to look. Here you actually see the opcodes on the left with a source mapping on the right. So, you see exactly how the compiled code maps to the original source code, and on the right you see the execution there. So, you see where it fails. You can see the stack at every point in time. This essentially means that rather than having to dig through all of this to figure out where things are going wrong, what the stack is at the time, and then, I guess, having to figure out what that means for your contract code, you can just have it side by side. So you see, okay, well, on the right you see exactly where it failed. So it says program failed and not verify operation. You can see the exact line and the corresponding bytecode for that.









