pub fn set_debug_info(
        &mut self,
        stack_entries: impl Into<Vec<String>>,
        detail: impl Into<String>,
    ) -> &mut Self {
        self.debug_info = Some(DebugInfo::new(stack_entries, detail));
        self
    }
Set [`DebugInfo`] details. Can be chained with other `.set_` and
`.add_` [`ErrorDetails`] methods.

# Examples

```
use tonic_types::ErrorDetails;

let mut err_details = ErrorDetails::new();

let err_stack = vec!["...".into(), "...".into()];

err_details.set_debug_info(err_stack, "error details");
```
tonic-types/src/richer_error/error_details/mod.rs