Add log event every time debugger is toggled.