Use StringBuilder api properly
Bring back DebugEventInspector