public void Debug(string message) { System.Diagnostics.Debug.WriteLine(string.Format("LabyPanel.Debug : {0}", message)); if (_debug.InvokeRequired) { DebugCallback d = new DebugCallback(Debug); Invoke(d, new object[] { message }); } else { _debug.Text = message; } }
static void CommonInit( Action <string> writeCallback, Action <string> debugCallback, Action <WriteCallback, DebugCallback> initializer, List <GCHandle> locks ) { var writeCallbackDelegate = new WriteCallback(writeCallback); var debugCallbackDelegate = new DebugCallback(debugCallback); locks.Clear(); locks.Add(GCHandle.Alloc(writeCallbackDelegate)); locks.Add(GCHandle.Alloc(debugCallbackDelegate)); initializer(writeCallbackDelegate, debugCallbackDelegate); }
public NativeOpenSsl (bool isServer, bool debug, NativeOpenSslProtocol protocol) { this.isServer = isServer; this.enableDebugging = debug; this.protocol = protocol; readHandler = Read_internal; writeHandler = Write_internal; shutdownHandler = Shutdown_internal; if (debug) debug_callback = new DebugCallback (OnDebugCallback); message_callback = new MessageCallback (OnMessageCallback); handle = native_openssl_initialize (debug ? 1 : 0, protocol, debug_callback, message_callback); if (handle.IsInvalid) throw new ConnectionException ("Handle invalid."); var ret = native_openssl_create_context (handle, !isServer); CheckError (ret); }
extern static OpenSslHandle native_openssl_initialize (int debug, NativeOpenSslProtocol protocol, DebugCallback debug_callback, MessageCallback message_callback);
public static extern CURLcode RegisterDebugCallback( SafeCurlHandle curl, DebugCallback callback, IntPtr userPointer, ref SafeCallbackHandle callbackHandle);
public static extern void RegisterLoggerCallback(DebugCallback callback);
/// <summary> /// Sets a debug callback /// </summary> /// <param name="callback"></param> /// <returns></returns> public ErrorCode SetDebugCallback(DebugCallback callback) { debugCallback = callback; Interface.DebugCallback = DebugCallback; return ErrorCode.OK; }
public static Result Initialize(DebugFlags flags, DebugMode mode, DebugCallback callback, string filename) { return(FMOD_Debug_Initialize(flags, mode, callback, filename)); }
private static extern bool RegisterDebugCallback(DebugCallback callback);
static extern void InitInternal(WriteCallback writeCallback, DebugCallback debugCallback);
//Handles events, Mouse downs, ups etc. void HandleEvents(Event e) { //Node click if (e.type == EventType.MouseDown && Graph.allowClick && e.button != 2) { Undo.RegisterCompleteObjectUndo(graph, "Move Node"); if (!e.control) { Graph.currentSelection = this; } if (e.control) { if (isSelected) { Graph.multiSelection.Remove(this); } else { Graph.multiSelection.Add(this); } } if (e.button == 0) { nodeIsPressed = true; } //Double click if (e.button == 0 && e.clickCount == 2) { if (this is IGraphAssignable && (this as IGraphAssignable).nestedGraph != null) { graph.currentChildGraph = (this as IGraphAssignable).nestedGraph; nodeIsPressed = false; DebugCallback.SyncSubTree(graph, (this as SubTree).ID);//new add } else if (this is ITaskAssignable && (this as ITaskAssignable).task != null) { EditorUtils.OpenScriptOfType((this as ITaskAssignable).task.GetType()); } else { EditorUtils.OpenScriptOfType(this.GetType()); } e.Use(); } OnNodePicked(); } //Mouse up if (e.type == EventType.MouseUp) { nodeIsPressed = false; if (graph.autoSort) { Graph.PostGUI += delegate { SortConnectionsByPositionX(); }; } OnNodeReleased(); } }
internal static extern void SteamNetworkingSockets_SetDebugOutputFunction(int detailLevel, DebugCallback callback);
public static void SetDebugCallback(int detailLevel, DebugCallback callback) { Native.SteamNetworkingSockets_SetDebugOutputFunction(detailLevel, callback); }
public unsafe static void DebugMessageCallback(DebugCallback callback, IntPtr userParameter) => glDebugMessageCallback(callback, userParameter);
private static extern void dllz_register_callback_debuger(DebugCallback callback);