(#3084) - API-level debug mode