Page 1 of 1
Monitoring errors in the WebViewGadget?
Posted: Fri Jan 12, 2024 4:53 pm
by Seymour Clufley
I love the new WebViewGadget, but one thing that is missing is the ability to track anything going wrong in the javascript. In a browser, this kind of thing is reported in the console. Is there any way, or will be there be any way, to access this in the WebViewGadget?
Re: Monitoring errors in the WebViewGadget?
Posted: Fri Jan 12, 2024 9:13 pm
by infratec
Of course it is possible.
I do it in my WebView2Gadget()
Code: Select all
Procedure WebView2OpenDevToolsWindow(Gadget.i)
Protected *Gadget.WebView2Gadget_Structure
*Gadget = FindMapElement(WebView2GadgetMap(), Str(Gadget))
If *Gadget
*Gadget\wvCore\OpenDevToolsWindow()
EndIf
EndProcedure
Re: Monitoring errors in the WebViewGadget?
Posted: Thu Jan 18, 2024 11:32 am
by Seymour Clufley
Hopefully this will be added for PB's native WebViewGadget.
Re: Monitoring errors in the WebViewGadget?
Posted: Thu Jan 18, 2024 4:40 pm
by the.weavster
It's available in the
webview library PB is using under the hood so it shouldn't be difficult for Fred to add the feature:
Code: Select all
webview_create(0, *window) ; no dev tools
webview_create(1, *window) ; has dev tools