C# Class Geowigo.Utils.DebugUtils

Mostrar archivo Open project: WFoundation/WF.Player.WinPhone Class Usage Examples

Public Methods

Method Description
AddBugSenseCrashExtraData ( WF cart ) : void

Adds an extra data to BugSense describing a cartridge.

ClearBugSenseCrashExtraData ( ) : void

Removes all extra data currently associated to the BugSense instance.

ClearCache ( ) : void

Removes all files from the log and dump cache.

DumpData ( byte data, Exception ex ) : void

Dumps an exception and data to the isolated storage.

DumpData ( byte data, string message ) : void

Dumps a message and data to the isolated storage.

DumpException ( Exception ex, string customMessage = null, bool dumpOnBugSenseToo = false ) : void

Dumps an exception to the isolated storage and on BugSense.

GetDebugReportFileCount ( bool includeRawData = false ) : int

Gets how many files are involved in the debug report.

GetVersion ( ) : string

Returns the declared version of this app.

Log ( string logName, string message ) : void

Logs a message in a previously created log session.

MakeDebugReport ( bool includeRawData = false ) : BugReport

Compiles all generated debug file into one string.

NewLogSession ( string logName ) : void

Creates a new log session for a particular name.

Private Methods

Method Description
DumpException ( AggregateException ex, StreamWriter sw, string header ) : void
DumpException ( Exception ex, StreamWriter sw, string header ) : void
DumpStack ( StreamWriter sw ) : void
GetDebugFiles ( IsolatedStorageFile isf, bool includeRawData ) : IEnumerable

Method Details

AddBugSenseCrashExtraData() public static method

Adds an extra data to BugSense describing a cartridge.
public static AddBugSenseCrashExtraData ( WF cart ) : void
cart WF
return void

ClearBugSenseCrashExtraData() public static method

Removes all extra data currently associated to the BugSense instance.
public static ClearBugSenseCrashExtraData ( ) : void
return void

ClearCache() public static method

Removes all files from the log and dump cache.
public static ClearCache ( ) : void
return void

DumpData() public static method

Dumps an exception and data to the isolated storage.
public static DumpData ( byte data, Exception ex ) : void
data byte
ex System.Exception
return void

DumpData() public static method

Dumps a message and data to the isolated storage.
public static DumpData ( byte data, string message ) : void
data byte
message string
return void

DumpException() public static method

Dumps an exception to the isolated storage and on BugSense.
public static DumpException ( Exception ex, string customMessage = null, bool dumpOnBugSenseToo = false ) : void
ex System.Exception
customMessage string
dumpOnBugSenseToo bool
return void

GetDebugReportFileCount() public static method

Gets how many files are involved in the debug report.
public static GetDebugReportFileCount ( bool includeRawData = false ) : int
includeRawData bool
return int

GetVersion() public static method

Returns the declared version of this app.
public static GetVersion ( ) : string
return string

Log() public static method

Logs a message in a previously created log session.
public static Log ( string logName, string message ) : void
logName string
message string
return void

MakeDebugReport() public static method

Compiles all generated debug file into one string.
public static MakeDebugReport ( bool includeRawData = false ) : BugReport
includeRawData bool
return BugReport

NewLogSession() public static method

Creates a new log session for a particular name.
public static NewLogSession ( string logName ) : void
logName string
return void