Navigation: Function Reference > General Utility Functions > debugPrint()

debugPrint()

Top  Previous  Next

debugPrint( formattedText: String ) ;

 

Very important utility procedure. Can be called from any study formula or user script. Use as an aid in debugging.

 

debugPrint will print its output to the ScanExpert Debug Window, which can be accessed off of the Help menu of the ScanExpert Viewer module. Use the debugPrint() procedure in conjunction with the format() utility procedure to send formatted text to the Debug Window. You can use it to print out the values of variables, input streams, input parameters....really almost anything and it can be an extremely valuable debugging tool.

 

Parameters

 

formattedText

string type

 

oSource := ThisStudy.getInputStream(0);

debugPrint( format( '%s: %s Value is %4.2f', [ThisStudy.getStudyName, dateTimeToStr(oSource.getTime(0)), oSource.getValue(0)] ) );

 

 

See also:

 

format()

dateToStr()

dateTimeToStr()