---
title: "\uCD94\uC801 \uC124\uC815"
description: "\uC2E4\uD589 \uC911\uC778 \uC81C\uD488\uC758 \uCD94\uC801 \uC124\uC815\uC740 \uC870\uC0AC \uC911\uC778 \uD55C \uB2E8\uACC4 \uC804\uD6C4 \uB4F1 \uC2A4\uD06C\uB9BD\uD2B8\uC5D0\uC11C \uD45C\uC2DC\uD558\uACE0 \uBCC0\uACBD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."
language: ko
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/ko/docs/invantive-script/statements/set-trace
original: https://documentation.invantive.eu/en/docs/invantive-script/statements/set-trace
updated: 2026-12-04T08:56:33Z
license: https://documentation.invantive.eu/ko/
---

## 구문
실행 중인 제품의 추적 설정은 다음 구문을 사용하여 스크립트에서 표시하고 변경할 수 있습니다:
```
local trace
local trace on
local trace off
local trace to file on
local trace to file on folder "FOLDER"
local trace to file off
```
릴리스 27.0부터 사용할 수 있습니다. 이 문은 `itgen_trace` 권한이 필요합니다.

단독으로 사용한 `local trace`은(는) 현재 적용 중인 설정을 메시지 itgentsm008와 함께 표시합니다: 추적 활성 여부, 추적을 파일에도 기록하는지 여부, 추적 폴더, 그리고 지금 기록 중인 추적 파일.

`local trace on`와 `local trace off`은(는) 추적을 전환합니다. `local trace to file on`은(는) 추적을 추적 폴더의 파일에 기록하며 추적도 함께 켭니다. `folder`을(를) 사용하면 추적 파일은 지정한 폴더에 저장되며, 이 폴더는 전체 경로여야 합니다. `local trace to file off`은(는) 추적 파일을 완료하고 닫으며 추적은 계속 켜 둡니다. `local trace off`은(는) 추적 파일도 닫습니다.

변경 사항은 즉시 적용되며 제품이 종료될 때까지 유지됩니다. 다음 시작 시에는 저장되지 않습니다. 전체 경로가 아닌 폴더는 itgentsm001와 함께 거부되며, 생성하거나 쓸 수 없는 폴더도 마찬가지로 거부됩니다. 두 경우 모두 추적은 이전 상태를 그대로 유지합니다. 폴더 내의 `${NAME}`와 같은 변수는 먼저 치환됩니다. 추적을 설정하는 다른 방법은 [[Trace Settings]]을(를), 추적 파일에 담기는 내용은 [[Trace Files]]을(를) 참조하십시오.

## 예시
다음 예제는 적용 중인 추적 설정을 보여 줍니다:
```
local trace
```
다음 예제는 작업의 한 단계를 기본 추적 폴더의 파일로 추적한 뒤 그 파일을 닫습니다:
```
local trace to file on

select count(*) from Payroll.Employees

local trace off
```
다음 예제는 스크립트의 나머지 부분에 대한 추적 파일을 별도의 폴더에 기록합니다:
```
local define TRACE_FOLDER "c:\jobs\trace"

local trace to file on folder "${TRACE_FOLDER}"
```
