Basic debug ubot code

1. Cut the part you think has a problem.
2. Remove define.
3. Change all variables from Local to Gobal.