provide debug function to framebuffer ffi implementation