naqvis / webview

Crystal bindings to Webview library
MIT License
93 stars 8 forks source link

Question : Is there a way to start a Webview app in debug mode ? #8

Closed serge-hulne closed 2 years ago

serge-hulne commented 2 years ago

Question : Is there a way to start a Webview app in "debug mode" in order to see the messages logged on the client side (logged by JS in the web page currently displayed), as it is done in Electron, for instance ?

naqvis commented 2 years ago

You can enable the debug mode of webview window by passing the last parameter of Webview#window as true. Then you can open developer console of browser window by right-click.

other than this option, there is no other setting which can be enabled and you will have to add logging/tracing capabilities by yourself to the codebase you are developing.

serge-hulne commented 2 years ago

Thank you!