private void OnJSConsoleMessageAdded(object sender, JSConsoleMessageEventArgs e) { string msg = "JSConsole: " + e.Source + "(" + e.LineNumber + "): " + e.Message; Debug.LogError(msg); }
private void internalJSConsoleMessage( IntPtr caller, IntPtr message, int lineNumber, IntPtr source ) { JSConsoleMessageEventArgs e = new JSConsoleMessageEventArgs( StringHelper.ConvertAweString( message ), lineNumber, StringHelper.ConvertAweString( source ) ); this.OnJSConsoleMessageAdded( this, e ); CommandManager.InvalidateRequerySuggested(); }
/// <summary> /// Raises the <see cref="JSConsoleMessageAdded"/> event. /// </summary> protected virtual void OnJSConsoleMessageAdded( object sender, JSConsoleMessageEventArgs e ) { if ( JSConsoleMessageAdded != null ) JSConsoleMessageAdded( sender, e ); }
private void OnJSConsole(Object sender, JSConsoleMessageEventArgs e) { Console.WriteLine(e.Message); }
public void JSConsoleEvent(object sender, JSConsoleMessageEventArgs e) { Console.WriteLine(e.Message); }
private void internalJSConsoleMessage( IntPtr caller, IntPtr message, int lineNumber, IntPtr source ) { JSConsoleMessageEventArgs e = new JSConsoleMessageEventArgs( StringHelper.ConvertAweString( message ), lineNumber, StringHelper.ConvertAweString( source ) ); this.OnJSConsoleMessageAdded( this, e ); }
private void OnConsoleMessageAdded(System.Object sender, JSConsoleMessageEventArgs args) { Debug.Log("ConsoleMsg: " + args.Message + "\n" + args.LineNumber + ": " + args.Source); }
void view_JSConsoleMessageAdded(object sender, JSConsoleMessageEventArgs e) { print(e.Message); }
/// <summary> /// When we receive a javascript error we print it /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void OnJSError(object sender, JSConsoleMessageEventArgs e) { Logger.Singleton.Log("Javascript Error: " + e.Message + " on line " + e.LineNumber + ". " + e.Source, Logger.MessageType.ERROR, new string[] { e.Source, e.LineNumber.ToString() }); }