Javascript errors not shown in devtool for browser.EvaluateScriptAsync calls #3900
holger-prause
started this conversation in
General
Replies: 1 comment 1 reply
-
This behavior is outside our control. You can probably hack something together, if the script was unsuccessful then execute JavaScript to call console.error https://developer.mozilla.org/en-US/docs/Web/API/console/error
Please wait for a response before creating an issue in future, thanks. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello- i noticed the following strange behaviour, javascript errors are not logged into the devtools window.
Environment: Windows 10
CEF Version: 93.1.140 (retrived via nuget package CefSharp.WinForms)
Embedding Type: Winforms
How to reproduce:
test.html
testscript.js
Start CEF Browser - open the url and click the "raise js error" button - the error will be shown on the devtools console
Now reload the page(to be sure) and just call the "doRaiseError" function via browser.EvaluateScriptAsync(methodName, methodArguments); If i inspect the JavascriptResponse object i see:
"Success" Property to be false and also the "Message" property which will contain the error
But the error is not shown in the devtools window
Is this intended behaviour and do i have a chance to correct this behaviour so that any js errors are always shown in the devtools console?
Disclaimer:
Thank you very much, if any programming code is required - i can supply it as this problem is pretty easy to reproduce.
Greetings,
Holger
Beta Was this translation helpful? Give feedback.
All reactions