Consistent types for debug-related functions