Add debug modes

- Add debug mode 8: print buffer
- Add debug mode 9: print formatted strings