标题说明了一切。我似乎无法弄清楚如何通过InvokeScriptAsync()调试注入WebView控件的Javascripts。该应用程序是UWP C#。
当发生Javascript错误时,我只能得到这个:
Exception thrown: 'System.Exception' in System.Private.CoreLib.ni.dll
HResult: -2147352319
Message: Exception from HRESULT: 0x80020101
Source: System.Private.CoreLib
Message:
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotificati on(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Utils.WebBrowser.<RunJS>d__14.MoveNext()
是否可以将调试器配置为停在导致错误的确切Javascript行上?