update debug message and expand tab for java/cpp