Hi i need help with debugging my code

I have completed a code, but i am not sure where is the error and how to debug it.

Please run robot with mode debug when error it will has color red on activity of you