Single-step mode
To use single-step mode, you need:
- Turn on single-step mode
- (optionally) Use Debug Build -- Sentio will recompile the contract with different compiler parameters to achieve the best source mappings. See #limitations
%20(6)%20(1).png)
Debugger options
Use the debugger
The debugger has standard definitions of
- Step-Over: Move to the next line of execution.
- Step-Into: If there is a function, steps into the function.
- Step-Out: If we are in a function, steps out the function to the upper level.
- Continue: This is the standard break-point.
- Restart: Restart from the beginning.
Inspect variables
The debugger automatically shows the local variables within the call context, and all the contract variables.
%20(1)%20(1)%20(2).png)
The debugger also supports adding user defined watched variables (similar to a regular debugger)
%20(1)%20(3).png)
Limitations
- Contracts compiled with the viaIR option are not fully supported.
- When debugging with release build, since it's fully optimized, there might be source-mapping issues and unexpected execution orders. You may read more about build-mode and consider switching to another build mode.
Updated 5 days ago