> For the complete documentation index, see [llms.txt](https://developer.trustwallet.com/developer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.trustwallet.com/developer/listing-guide/debugging.md).

# Debugging

Make sure you have the [latest app version](https://trustwallet.com/download), check if there is any new update on Google Play or App Store

## 1. Install a mobile web console

We use [vConsole](https://github.com/Tencent/vConsole) on our test dapp: <https://js-eth-sign.surge.sh/>, click the bottom green `vConsole` button to see logs.

<div><img src="/files/-MZSTl7T2HJ6ers4VK46" alt="" width="45%"> <img src="/files/-MZSTl7UMQBY22esNvTg" alt="" width="45%"></div>

## 2. \[Android] Chrome Remote debugging

Download Trust Wallet apk from [trustwallet.com](https://trustwallet.com/download) and drag it to your emulator. (app installed from Google Play won't work)

Open the dapp in Trust Wallet (1inch.io as example)

<div><img src="/files/-MZSTl7VZr2hF4428v4m" alt="" width="45%"> <img src="/files/-MZSTl7WGBKiRu8XprNL" alt="" width="45%"></div>

Visit `chrome://inspect/#devices` or `edge://inspect/#devices` to inspect the web console

![Edge inspect](/files/-MZSTl7XH6_7R0PPyIlk) ![Edge inspect](/files/-MZSTl7Ycv4sm2Vu1qPN)

## 3. \[iOS] Safari WebView debugging

iOS doesn't support debugging app built for distribution, you can try to build this iOS demo in [trust-web3-provider](https://github.com/trustwallet/trust-web3-provider/tree/main/packages/ios-web3-provider) and check if it can connect to your DApp or not, please follow this [guide](https://webkit.org/web-inspector/enabling-web-inspector/) to inspect.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://developer.trustwallet.com/developer/listing-guide/debugging.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
