통사론
Diagnostics.Trace(
traceLevel as number,
message as anynonnull,
value as any,
optional delayed as nullable logical
) as any
소개
추적이 활성화되어 있는 경우, 추적 message을 기록하며 value을 반환합니다. 선택적 매개 변수 delayed 메시지가 추적될 때까지 value 평가를 연기할지 여부를 지정합니다.
traceLevel 다음 값 중 하나를 사용할 수 있습니다.
예제 1
Text.From 함수를 호출하기 전에 메시지를 추적하고 결과를 반환합니다.
사용량
Diagnostics.Trace(TraceLevel.Information, "TextValueFromNumber", () => Text.From(123), true)
출력
"123"