To find out whether err_silent was wrong before or after the call to printField(), put a breakpoint in printField().
Select printField(), right-click, and choose New Breakpoint.
The New breakpoint type is pre-selected and the Function field is pre-populated with printfield.
Click OK.
Click Restart
.
The first time you hit the breakpoint is during the first run, on the first stop, and on the first field, var.a. err_silent is 0, which is OK.
Click Continue.
err_silent is still OK.
Click Continue again.
err_silent is still OK.
Reaching the particular call to printField() that resulted in the unwanted error message might take a while. You need to use a breakpoint count on the printField breakpoint. But what shall the count be set to? In this simple example, you could attempt to count the runs and the stops and the fields being displayed, but in practice the process might be more difficult. There is a way to determine the count semi-automatically.