debug permission