I have a website that a 3rd party has iframed into their iOS app inside a WkWebView. There is a bug on my site that manifests only when viewed in this app; I cannot replicate it either via a browser or a separate iOS app that I built specifically to check for the bug. In order to proceed with resolving the bug, I need to be able to debug the javascript running in real time in the app. If I had a debug build of the app, this would be trivially easy: just hook it up to Safari's remote debugger, but due to security constraints, the app developer cannot release a debug build to me.
What options exist to debug javascript under these conditions?
- cannot change app code
- must work with a release build of an app
- at a minimum, view logs or, preferably, expose capabilities comparable to a browser developer console:
- add breakpoints
- step through code
- view DOM
- view console outputs
- importing a javascript library into my website to enable this is acceptable, but I would prefer a tool-based solution over a code-based one