Click or drag to resize

DebugFail Method (String, String)

An error message, with detailed error information and a stack trace, is displayed on the FlexPendant. The error message, with detailed error information and a stack trace, is also sent out on the network. The error message can be displayed in the controller console by enabling the functionality on the controller. Use fpcmd_enable_console_output to enable FlexPendant logging.

Namespace:  ABB.Robotics.Diagnostics
Assembly:  ABB.Robotics (in ABB.Robotics.dll) Version: 6.5.129.0
Syntax
C#
public static void Fail(
	string message,
	string detailedmessage
)

Parameters

message
Type: SystemString
A message to write.
detailedmessage
Type: SystemString
A detailed message to display.
Examples
This example displays and logs an error message.
Debug.Fail("Operation not allowed in current state", string.Format("state: {0}", myobj.State.ToString()));
See Also