We used the Remix editor to write Solidity contracts in the previous chapters. However, we have not used the debugging utility available in Remix. The Remix debugger helps us observe the runtime behavior of contract execution and identify issues. The debugger works in Solidity and the resultant contract bytecode. With the debugger, the execution can be paused to examine contract code, state variables, local variables, and stack variables, and view the EVM instructions generated from contract code.
The following screenshot of contract code will be used to demonstrate debugging using the Remix editor:
The contract has a single ...