Exemple #1
0
 public void SetBreakpointOnException(JavaScriptDiagBreakOnExceptionAttributes attributes)
 {
     runner.RunTask(() =>
     {
         Native.ThrowIfError(Native.JsDiagSetBreakOnException(runtime, attributes));
     });
     stepASE.Set();
 }
Exemple #2
0
 public static extern JavaScriptErrorCode JsDiagGetBreakOnException(JavaScriptRuntime runtimeHandle, out JavaScriptDiagBreakOnExceptionAttributes exceptionAttributes);
Exemple #3
0
 /// <summary>
 ///     Sets break on exception handling.
 /// </summary>
 /// <param name="exceptionAttributes">Mask of JsDiagBreakOnExceptionAttributes to set.</param>
 /// <remarks>
 ///     <para>
 ///         If this API is not called the default value is set to JsDiagBreakOnExceptionAttributeUncaught in the runtime.
 ///     </para>
 /// </remarks>
 /// <returns>
 ///     The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
 /// </returns>
 /// <remarks>
 ///     The runtime should be in debug state. This API can be called from another runtime.
 /// </remarks>
 public void JsDiagSetBreakOnException(JavaScriptDiagBreakOnExceptionAttributes exceptionAttributes)
 {
     Native.ThrowIfError(Native.JsDiagSetBreakOnException(this, exceptionAttributes));
 }