session // gastronomybuild · cardano · uplcconnected
$
// the aiken & uplc debugger
GASTRONOMY
Step through Cardano smart contracts line by line. Travel backwards in execution. Map UPLC straight back to the Aiken source that produced it.
02step.debug
No more
trial & error.
Trace every UPLC step. Walk the execution forwards and backwards. Map each frame to the Aiken line that emitted it.
- >step through every reduction
- >rewind without restarting
- >map uplc → aiken source
- >inspect context, env, root
gastronomy ── fibonacci.json
step 310/501·388,844 cpu·1,932 mem
src/fibonacci.ak2:6
1fn fibonacci(n: Int) -> Int {2 if n == 0 {3 04 } else if n == 1 {5 16 } else {7 fibonacci(n - 1) + fibonacci(n - 2)8 }9}
contextROOT
applyhead
force$1
lambdax → …
env4 frames
1:1(con int 2)
1:2(con data #d8)
1:3(con bytestring #ab…)
1:4(con int 1)
termsrdx 31
head(builtin add)
next(force x)
computefibonacci.ak:2:6
pprevnnextrrewindqquit
03features.manifest
Build fast. Build smart.
Four things Gastronomy does better than any other tool on Cardano. Pick one to focus on, or step through with n and p.
$ gastronomy trace <tx-hash>
1234·←→
04connect.community
Pair-debug with the team.
Gastronomy is open source and actively maintained by Sundae Labs. File an issue, open a PR, or just say hi.
$sundae chat --connect
↵ open any channel to continue