Created
November 16, 2011 20:01
-
-
Save vermie/1371164 to your computer and use it in GitHub Desktop.
more debugging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Client/World/Network/WorldSocket.cs b/Client/World/Network/WorldSocket.cs | |
index 6c3df10..0d6cbd8 100644 | |
--- a/Client/World/Network/WorldSocket.cs | |
+++ b/Client/World/Network/WorldSocket.cs | |
@@ -8,6 +8,7 @@ using Client.Authentication; | |
using Client.UI; | |
using Client.Chat; | |
using Client.Chat.Definitions; | |
+using System.Diagnostics; | |
namespace Client.World.Network | |
{ | |
@@ -74,6 +75,14 @@ namespace Client.World.Network | |
private void BeginRead(AsyncCallback callback, object state = null) | |
{ | |
+ var caller = new StackTrace(1, true).GetFrame(0); | |
+ Game.UI.LogLine | |
+ ( | |
+ string.Format("BeginRead @{0} for {1} bytes, callback {2}, from {3}:{4}", | |
+ Index, Remaining, callback.Method.Name, caller.GetFileName(), caller.GetFileLineNumber()), | |
+ LogLevel.Debug | |
+ ); | |
+ | |
this.connection.Client.BeginReceive | |
( | |
ReceiveData, Index, Remaining, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment