Allow user to toggle debug mode from log dialog at runtime

![logdebug](https://cloud.githubusercontent.com/assets/151042/2695302/e7cd8426-c3d3-11e3-8c71-84ef7638117b.jpg)