1. Open the VI you want to debug.
2. Place Desktop Execution Trace Toolkit>>Generate User-Defined Trace Event to the location of the code where you want to add the event log during execution.
3. Create a string constant and connect it to the trace string input terminal. trace string cannot exceed 255 characters.
(Optional)Create an I32 constant and connect it to the trace integer input terminal.
4. Click Tools >> Profile >> Trace Execution... to launch the Desktop Execution Trace Window.
5. Click the Start button or press Ctrl+R to start a trace session.
6. Run the VI and check the trace session.