Facepunch.Steamworks Wiki

Steamworks.SteamNetworkingUtils.OnDebugOutput

Syntax

static event Action<NetDebugOutput, string> OnDebugOutput

Description

A function to receive debug network information on. This will do nothing unless you set DebugLevel to something other than None.

You should set this to an appropriate level instead of setting it to the highest and then filtering it by hand because a lot of energy is used by creating the strings and your frame rate will tank and you won't know why.