Debug log uses JSON.stringify to support browsers