Debug, editor mode recognition, filename validate