---
name: "tickit_debug_init"
section: "3"
platform: "linux"
package: "libtickit-dev"
version: "0.4.3-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/tickit_debug_init"
---

# tickit\_debug\_init(3)

initialise the debugging system

## NAME

tickit\_debug\_init - initialise the debugging system

## SYNOPSIS

```
#include <tickit.h>

void tickit_debug_init(void);

bool tickit_debug_enabled;
```

Link with *-ltickit*.

## DESCRIPTION

**tickit\_debug\_init**() initialises the *libtickit* debugging system. It reads the values of the environment variables and sets up the output filehandle, if enabled. It also has a side-effect on the value of the *tickit\_debug\_enabled* global variable, setting it to the correct value. Applications that wish to read this variable to control their output of debugging messages may wish to call this function on startup, to ensure it takes the correct value.

**tickit\_debug\_init**() is guarded internally so that it is safe to call multiple times; there is no downside to opportunistically invoking it on startup anyway, even if some other part of the application may also have done so.

## RETURN VALUE

This function returns no value.

## SEE ALSO

[**tickit\_debug\_logf**(3)](/tickit_debug_logf/3.md), [**tickit\_debug**(7)](/tickit_debug/7.md), [**tickit**(7)](/tickit/7.md)
