Manuais
PHC GO Funções SDK - Debug
 

Debug

This class contains functions that allow you to output messages to help debug your code.
 
 

LogInfo


Description

Writes the specified string value into the application log error.

Return Function

A string with the date and time the command was executed.

Parameters


Name Description Type
msgItem The message to write String

Example


'This example writes the text "Hello World!" into the application log error 

SDK.Debug.LogInfo("Hello World!")


LogDebug


Description

Writes the specified string value into the application log error with a stack trace.

Return Function

A string with the date and time the command was executed.

Parameters


Name Description Type
msgItem The message to write String

Example


'This example writes the text "Hello World!" into the application log error 

SDK.Debug.LogDebug("Hello World!")


LogError


Description

Writes the specified string value as an error message into the application log error.

Return Function

A string with the date and time the command was executed.

Parameters


Name Description Type
msgItem The message to write String

Example


'This example writes the text "Error message" into the application log error 

SDK.Debug.LogError("Error message")


Log


Description

Writes exception information into the application log error.

Return Function

A string with the information logged.

Parameters


Name Description Type
ex Exception to log Exception

Example


Try 

'Code that might generate an exception goes here.
Catch ex As Exception
SDK.Debug.Log(ex)

End Try