> ## Documentation Index
> Fetch the complete documentation index at: https://eco-804c21df.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Debug

> Debug library

### debug.isvalidlevel

```lua theme={null}
debug.isvalidlevel(level: number) : bool <boolean>
```

Checks if the given `level` is valid, then returns it as boolean

### debug.getinfo

```lua theme={null}
debug.getinfo(func: () -> () | number) : {[string]: any} <table>
```

Returns a table containing all details of the `func`

### debug.getconstants

```lua theme={null}
debug.getconstants(func: () -> () | number) : {[string]: any} <table>
```

Returns a table containing the constants of the `func`

### debug.getconstant

```lua theme={null}
debug.getconstant(func: () -> () | number, index: number) : Constant? <string>
```

Returns the constant of the `func`.

### debug.getprotos

```lua theme={null}
debug.getprotos(func: () -> () | number) : {[string]: any} <table>
```

Returns a table containing the protos of the `func`

### debug.getproto

```lua theme={null}
debug.getproto(func: () -> () | number, index: number, active?: boolean) : Proto? | {Proto?} <Object>
```

Returns the proto of the `func`.
