Put in a ProcessDrawEvents() or a ProcessSystemEvents() function call after each InsertTextBoxLine call. InsertTextBoxLine doesn't include a forced redraw of the control in the function, instead it places a redraw event in the queue to have the control redraw after the current callback. So you have to process the draw event and then continue the callback to see the update immediately. That will cause the redraw to take place. You must be using CVI 5.0.1 or previous. In CVI 5.5 or later, the text box should not perform differently when debugging.
Best Regards,
Chris Matthews
National Instruments