added doc for setDebug and isDebug