Added a way to debug external buffers