add debug command and update doc