|Home > LISA+ Components > The LISA+ message function and debugging > About the LISA+ message function and debugging|
Printing output to a window or to the console is often useful for debugging components. LISA+ has a
message() function that prints messages to the output window. It forwards messages through
terminate()simulation phase because the callback has already been disconnected.
Messages are system wide and are forwarded without instance names. To indicate the originator of the message, prefix the message with the string returned by:
getInstanceName()to include the name of the component in its parent component.
getInstancePath()to include the component instance name from the top component. The top component name is not included. If this is called for a top component, an empty string is returned.
message() function has C++ and C