java debug variable value changing function added