added debug support on gui

added debug support on gui