Fixed recordDebug for empty strings