debug: handle "generic" debug interface