> 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="https://2889587170-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LeGDgApX5LA1FGVGo-z%2Fuploads%2Fgit-blob-f3a7251283e7a8d9f7c1e0ecb29a20f7bc8b72ec%2Fjs-eth-sign.png?alt=media" alt="" width="45%"> <img src="https://2889587170-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LeGDgApX5LA1FGVGo-z%2Fuploads%2Fgit-blob-67347260c225d4822e636ca612afab069be8616c%2Fjs-eth-sign-console.png?alt=media" 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="https://2889587170-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LeGDgApX5LA1FGVGo-z%2Fuploads%2Fgit-blob-55efc7766bfc6b5319a9a41709237bc4fce37369%2Fandroid-install-apk-emulator.png?alt=media" alt="" width="45%"> <img src="https://2889587170-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LeGDgApX5LA1FGVGo-z%2Fuploads%2Fgit-blob-142cc8dddf46320225c7eafc99ba9219d08b2a43%2Fandroid-dapp-emulator.png?alt=media" alt="" width="45%"></div>

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

![Edge inspect](https://2889587170-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LeGDgApX5LA1FGVGo-z%2Fuploads%2Fgit-blob-26bb06acd9403f1b52320e82172fc164864f8122%2Fedge-inspect.png?alt=media) ![Edge inspect](https://2889587170-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LeGDgApX5LA1FGVGo-z%2Fuploads%2Fgit-blob-26f86a896781ba8c588b1fe90af51411836a53cd%2Fedge-inspect2.png?alt=media)

## 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
