Better debugmode activation