Refine DebugUtil and add LogViewerPage