> For the complete documentation index, see [llms.txt](https://support.marscat.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.marscat.io/development-guide/frontend-development/debugging-tools.md).

# Debugging Tools

To improve development efficiency, MarsApp supports debugging functionality, allowing you to test application features without directly publishing online.

Debugging environment requirements:

* Ensure Marscat and the development device are on the same network
* Local web server must be running (such as nginx, Apache, or Node.js development server)

Debugging steps:

{% stepper %}
{% step %}

### Start Local Service

Use nginx or other web server to start the MarsApp page locally.
{% endstep %}

{% step %}

### Get Local Access Address

After startup, obtain the local network IP address and port.

```
Example address: http://192.168.1.100:8080
```

{% endstep %}

{% step %}

### RelayX debug configuration

* Open the RelayX application
* Enter developer mode
* Find debugging function entry
* Input local service address: `http://192.168.1.100:8080`

After entering the link, you can open the local MarsApp and start debugging testing.
{% endstep %}
{% endstepper %}

## Debug MarsApp Instructions

Debug MarsApp address: `1GpfkLXuSoNaArx9Xe3HDyXN9HkPQ4f4Yv`

The debug MarsApp also supports testing for Self Service functionality, providing Self Service API call permissions to facilitate developers testing Self Service related features. Note that the debug MarsApp only provides API call permissions; the corresponding `service-key` needs to be maintained and managed by developers themselves.

<details>

<summary>Self Service API certificate (provided by debug MarsApp)</summary>

```json
{
    "content": "eyJhZGRyZXNzIjoiMUdwZmtMWHVTb05hQXJ4OVhlM0hEeVhOOUhrUFE0ZjRZdiIsImRhdGEiOiI4IiwiZXhwaXJlZCI6MTc5MDIyODgzNjUzMCwidmVyc2lvbiI6MX0=",
    "signature": "IBcZNZNStJyup7KruNCp5Wu3/neqxjlINufArbAeaJJSALM7aKXjCqEYuDiHfbY9VLB9aWhxmdpo4H8iJl8VuoQ="
}
```

</details>

{% hint style="warning" %}
Debugging considerations:

* Ensure firewall allows access to the corresponding port
* Local IP address may change, requiring timely updates to the debug address
* Debug environment API certificates differ from production environment — please distinguish carefully
* After debugging is complete, it is recommended to close the local service promptly to ensure security
  {% endhint %}

Through the debugging functionality, developers can test MarsApp features and interactions with RelayX in real-time during development, greatly improving development efficiency and debugging experience.
