2.3.1 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 CADISimulationCallback::simMessage().

Note:

Message handling does not work in the 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.

The message() function has C++ and C style prototypes.

Non-ConfidentialPDF file icon PDF version101092_0100_03_en
Copyright © 2014–2018 Arm Limited or its affiliates. All rights reserved.