Files
libremetaverse/libsecondlife-cs/examples/TestClient/Commands/DebugCommand.cs
John Hurliman 58040e48f8 * Moved ViewerEffect handling to AvatarManager
* Reworked the teleport system to get rid of bad Tick and Sleep calls and clean up callback confusion
* Removed the DownloadInventory() command and replaced all usage of it with fixme notes as it was found to be potentially dangerous to simulators
* Updated the VS2005 solution file with openjpegnet and VisualParamGenerator
* Removed a Sleep call from NetworkManager
* Moved SecondLife.Debug boolean to SecondLife.Settings.Debug

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@902 52acb1d6-8a22-11de-b505-999d5b087335
2007-01-25 13:02:20 +00:00

38 lines
1013 B
C#

using System;
using System.Collections.Generic;
using libsecondlife;
using libsecondlife.Packets;
namespace libsecondlife.TestClient
{
public class DebugCommand : Command
{
public DebugCommand(TestClient testClient)
{
Name = "debug";
Description = "Turn debug messages on or off. Usage: debug [on/off]";
}
public override string Execute(string[] args, LLUUID fromAgentID)
{
if (args.Length != 1)
return "Usage: debug [on/off]";
if (args[0].ToLower() == "on")
{
Client.Settings.DEBUG = true;
return "Debug logging is on";
}
else if (args[0].ToLower() == "off")
{
Client.Settings.DEBUG = false;
return "Debug logging is off";
}
else
{
return "Usage: debug [on/off]";
}
}
}
}