To "Debig" sutch snipplets put more system prints inside the code.
In a nitshell:
On each while block method execution it will print as many *, as for loop will iterate times.

Possible values...