Use correct argument types for debug function callback.