# Debugging

There are three ways to debug your applications

* **Enabling debug mode** (Only for web applications)
* **Server Logs** (Web and Mobile)
* **Custom Logs** (Web and Mobile)

## Debug Mode

This option allows you to debug your application using the Browser console tool. To enable this go to the Settings panel and enable on Debug Mode checkbox

![](/files/SHzT8DzaUmbJEQnnJTI4)

Open the console dev tools in your browser and you will start to see the logs in the console

<figure><img src="/files/QzHqgbOiloSPamTPCcn1" alt=""><figcaption></figcaption></figure>

## Server Logs

To enable this please contact us to enable this option. After this option is properly enabled you can go to the Settings panel and click on "View Logs"

![](/files/xHI0alBMPjyAMLChMfZK)

You will start receiving logs from Azure

<figure><img src="/files/hInDq441ZLOP0IZ5R8CJ" alt=""><figcaption></figcaption></figure>

## Custom Logs

{% hint style="info" %}
This option is useful when you need to debug remotely (for instance from the server or a mobile client)
{% endhint %}

{% hint style="warning" %}
This option is only available in version 2.1.9 or greater
{% endhint %}

To see this option you need to go to the Settings panel and click on "View Logs" button

![](/files/xHI0alBMPjyAMLChMfZK)

You will start receiving logs from custom logs

<figure><img src="/files/Zp5A3eOrbz6fKLqsDIRh" alt=""><figcaption></figcaption></figure>

### How to send custom logs

When you are writing your hooks or client rules you can use the `sendLog` function

#### Hooks

```javascript
const sendLog = require("./utils/sendNotification").sendLog;

//You can send plain text
sendLog("My custom log message");

// or also objects
sendLog({ name: "John", lastName: "Doe"});
```

#### Client Rules (Mobile and Web)

```javascript
//You can send plain text
helpers.sendLog("My custom log message");

// or also objects
helpers.sendLog({ name: "John", lastName: "Doe"});
```

## Graphql Logs

To see this option you need to go to the Settings panel and click on "View Logs" button

![](/files/xHI0alBMPjyAMLChMfZK)

After you have activated the **debug mode** you can see every request of graphql (API) that is made in the application, it can be from the web application or mobile app, and everything will appear in the same window of the Custom Logs.

What will you see?&#x20;

* Query or mutation executed&#x20;
* Variables sent
* Respond data

<figure><img src="/files/e7dMzI6YEFhNMtwTDtIm" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://codenull.gitbook.io/dev/configurations/debugging.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
