[tools] fixed compile error when enabling the debugger
[tools] added debug command to dump vram and cram to a file