Unable to debug undefined local variable number