You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try setting PyConfig during runtime using __browser.GetMainFrame().SetProperty(): <ahref="javascript:python.ChangePyConfig()">python.ChangePyConfig()</a> (then call python.PrintPyConfig())
185
195
186
-
<h4>Infinite recursion</h4>
187
-
Test infinite recursion: <ahref="javascript:python.Test1(window)">python.Test1(window)</a> - you will see a python exception in console (also in error.log), data structures can have maximum 8 levels of nesting.
<p>Typically when you browse a webpage your javascript errors appear in javascript console in developer tools (in cefadvanced.py there is a binding to F12 key for developer tools).</p>
222
226
223
-
<h3>Test javascript error, OnUncaughtException() callback will catch it</h3>
227
+
<h4>Global exception handler</h4>
228
+
229
+
<p>You can catch javascript errors programmatically by
230
+
using JavascriptContextHandler and the OnUncaughtException callback,
231
+
test it:<br>
232
+
<ahref="javascript:DoSomeError()">
233
+
DoSomeError()</a>
234
+
</p>
235
+
236
+
<h4>Test error when calling javascript callback from python</h4>
0 commit comments