Evaluate Expressions with Advanced Debugger

Evaluate Expressions with Advanced Debugger


We wrote a blog explaining in more detail what Evaluate Expression is and how it came to be, how and why you should use it, as well as some common use cases to get you started, such as:

  • Evaluating complex expressions
  • Evaluating dynamic arrays, mappings, and other state variables
  • Evaluating functions
  • Evaluating global and local variables

You can read more about it right here 👇

You can now evaluate expressions in the execution trace! Go to any transaction in the "Transactions" in the left-hand navigation, then go to the "Debugger" tab, and click on the "Evaluate" button:

The Eval feature is currently only supported for Solidity contracts, and we're working on supporting Eval for Vyper contracts as well. Choose any expression you want to evaluate, paste it into the box and hit the Evaluate button:

This works for both simple and complex expressions:

You can read more about other Debugger features and Advanced Trace Search here and here.