Appends expressions converted to strings to the built-in Debug Log window.
Trace [ Using sFormatSpec ; ] [ [ Expression ] [ , ] [ ; ]... ]
The Trace statement is used to print text to the Debug Log. It operates in exactly the same manner as the Print statement, except its output goes to the Debug Log.
If the Trace statement is not ended with a comma (,) or a semicolon (;) the print position is moved to the beginning of a new line after ATEasy outputs the string. A new line can also be generated by embedding the characters \r\n or \n inside a string Expression.
A comma can be used to move the print position to the beginning of the next Tab, which is the next position that can divided by 15.
A semicolon can be used as a separator between Expressions without moving the print position.
The Expression can be a string-exp or a simple (not array) numeric-exp. Each numeric-exp is converted to a string that contains a leading space if the number is positive and the minus (-) if the number is negative. The format of a converted numeric-exp to string is the same as the Str function (with iBase as 10).
The optional Using clause is used to format numeric values. The sFormatSpec is a string-exp that has the same syntax as the sFormatSpec used by the Format function. After the semicolon in the Using clause, only numeric-exps are allowed as Expressions.
Trace "ATEasy";
Trace " is"; " Easy"
Trace 4*5,
Trace "ATE"; "Easy"
!This will print:
!ATEasy is Easy
!20 ATEasy
Trace using "###.###"; 1.45
Trace using "###.###"; -1.45
Trace using "###.###"; -99.4523
Trace using "###.###"; 2344.9549
Trace using "###.###E###"; 2344.9549
!This will print:
! 1.450
! -1.450
!-99.452
! 2344.955
! 23.450E+02