# Is it possible to debug webviews on AnkiMobile?

**URL:** <https://forums.ankiweb.net/t/is-it-possible-to-debug-webviews-on-ankimobile/29874>\
**Category:** Help\
**Created:** [April 30, 2023, 10:40pm UTC](https://forums.ankiweb.net/t/is-it-possible-to-debug-webviews-on-ankimobile/29874 "2023-04-30T22:40:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AquafinaWaterBottle](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/aquafinawaterbottle/32/12314_2.png) [@AquafinaWaterBottle](https://forums.ankiweb.net/u/AquafinaWaterBottle)\
**Post date:** [April 30, 2023, 10:40pm UTC](https://forums.ankiweb.net/t/is-it-possible-to-debug-webviews-on-ankimobile/29874/1 "2023-04-30T22:40:23Z")

</div>

Hey all,

On Ankidroid, I am usually able to inspect the webview directly using [chrome dev tools](https://github.com/ankidroid/Anki-Android/wiki/Development-Guide#html-javascript-inspection). Quickly looking into how to do the equivalent for iOS, there was a point listed in [this blog](https://blog.vuplex.com/debugging-webviews/) that says:

> You can only debug webviews in applications loaded onto your device through Xcode. You can’t debug webviews in apps installed through the App Store or Apple Configurator.

Given that AnkiMobile is closed source, does this mean that it is impossible for end users like myself to inspect the element and debug problems with templates? I unfortunately do not own a Mac, so I can’t test this directly (which is why I am asking here before asking other people people to try).

P.S. To avoid the x/y problem, the main problem that I’m trying to solve is debugging why certain parts of my template don’t work on AnkiMobile. Usually, I’m able to debug this myself by inspecting the webview and seeing stuff like CSS for each element and any console errors. If there’s any other way of debugging templates on AnkiMobile, any info on it would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [May 1, 2023, 5:10am UTC](https://forums.ankiweb.net/t/is-it-possible-to-debug-webviews-on-ankimobile/29874/2 "2023-05-01T05:10:32Z")

</div>

@krmanik mentioned recently that he’s successfully used [eruda console](https://github.com/ankidroid/Anki-Android/wiki/Development-Guide#via-eruda-console-for-mobile-browsers) on iOS.

---

<div class="post-metadata">

**Author:** ![AquafinaWaterBottle](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/aquafinawaterbottle/32/12314_2.png) [@AquafinaWaterBottle](https://forums.ankiweb.net/u/AquafinaWaterBottle)\
**Post date:** [May 1, 2023, 9:57am UTC](https://forums.ankiweb.net/t/is-it-possible-to-debug-webviews-on-ankimobile/29874/3 "2023-05-01T09:57:13Z")

</div>

This looks perfect! I’ll update this thread later with whether we get it working or not. Thank you!

---

<div class="post-metadata">

**Author:** ![AquafinaWaterBottle](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/aquafinawaterbottle/32/12314_2.png) [@AquafinaWaterBottle](https://forums.ankiweb.net/u/AquafinaWaterBottle)\
**Post date:** [May 8, 2023, 5:41am UTC](https://forums.ankiweb.net/t/is-it-possible-to-debug-webviews-on-ankimobile/29874/4 "2023-05-08T05:41:48Z")

</div>

@krmanik Me and another person tested the eruda console out on AnkiMobile, but we were only able to see the basic console log. In particular, the other tabs such as “elements” do not show anything. Do you have a similar experience?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [June 7, 2023, 5:42am UTC](https://forums.ankiweb.net/t/is-it-possible-to-debug-webviews-on-ankimobile/29874/5 "2023-06-07T05:42:21Z")

</div>

Closed on June 7, 2023, 5:42am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
