pub fn try_print_query_stack(
    handler: &Handler,
    num_frames: Option<usize>,
    file: Option<File>
)