---
title: thunder.examine.examine
description: >-
  show_call_stack: bool | int=False:  if you pass True, a call stack will be
  printed for each invocation of an unknown function. If you pass a number, the
  stack will be limited to a depth of that value.
canonical: >-
  https://lightning.ai/docs/thunder/stable/api-reference/generated/thunder.examine.examine
---
# thunder.examine.examine {#thunder-examine-examine}

### `thunder.examine.examine(fn, *args, show_call_stack=False, **kwargs)` {#thunder.examine.examine}

[\[source\]](https://github.com/Lightning-AI/lightning-thunder/blob/0.2.6/thunder/examine/__init__.py#L52-L192)

show\_call\_stack: bool | int=False: if you pass True, a call stack will be printed for each invocation of an unknown function. If you pass a number, the stack will be limited to a depth of that value.

Parameters:

*   **fn** ([_Callable_](https://docs.python.org/3/library/collections.abc.html#collections.abc.Callable "(in Python v3.15)")) –
    
*   **show\_call\_stack** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)") _|_ [_int_](https://docs.python.org/3/builtins/functions.html#int "(in Python v3.15)")) –

---

**Navigation**

- Parent: [Generated](/docs/thunder/0.2.6/api-reference/generated.md)
