Hello, I took a look at the emulator for you.You must be registered for see links
How does one disable this?
TryExecutePacket()
method of the PacketManager
class checks whether a debugger is attached.Log.Debug()
is called.bin\Debug\<framework-version>
.If you still see it,The emulator is not in debug mode; its opened by going to bin/debug/plusemulator.exe <- yet it still does the logger. and log.debug() isnt called for.
Log.Debug()
is definitely called somewhere.Debugger.IsAttached
will return false
and Log.Debug()
cannot be called accordingly.PacketManager.cs:L132
from
public void TryExecutePacket(GameClient session, ClientPacket packet)
{
if (session == null)
return;
if (!_incomingPackets.TryGetValue(packet.Id, out IPacketEvent pak))
{
if (System.Diagnostics.Debugger.IsAttached)
Log.Debug("Unhandled Packet: " + packet);
return;
}
if (System.Diagnostics.Debugger.IsAttached)
{
if (_packetNames.ContainsKey(packet.Id))
Log.Debug("Handled Packet: [" + packet.Id + "] " + _packetNames[packet.Id]);
else
Log.Debug("Handled Packet: [" + packet.Id + "] UnnamedPacketEvent");
}
if (!_ignoreTasks)
ExecutePacketAsync(session, packet, pak);
else
pak.Parse(session, packet);
}
TryExecutePacket()
method?