readium / swift-toolkit

A toolkit for ebooks, audiobooks and comics written in Swift
https://readium.org/mobile/
BSD 3-Clause "New" or "Revised" License
225 stars 96 forks source link

How to debug javascript code #314

Closed JacobDaneh closed 1 year ago

JacobDaneh commented 1 year ago

Hi,

How can I debug JavaScript code that has been injected into HTML pages by reader? Safari Web Inspector on Mac does not work because the streamer creates a local server for EPUB resources in the simulator or physical device.

mickael-menu commented 1 year ago

Try with an emulator < iOS 16, or with the develop branch.

There's was an issue that disabled the Safari Web Inspector on iOS 16: https://github.com/readium/swift-toolkit/pull/303