- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
",t};e.buildCustomizationMenuUi=t;function n(e){let t='
",t}function s(e){let n=e.filter.currentValue||e.filter.defaultValue,t='${e.filter.label}
`,e.filter.options.forEach(s=>{let o=s.id===n;t+=``}),t+="${e.filter.label}
`,t+=`The Live Debugger enables you to add logpoints—auto-expiring, non-breaking breakpoints—to your runtime code to collect information for debugging. The logpoints are added dynamically, so there is no need to redeploy your code, allowing you to resolve issues in a running system. You can edit or delete logpoints at any time, and they automatically expire after 48 hours.
The Live Debugger in the Datadog tool window shows the defined logpoints and their related output:
The panel has three sections:
The logpoints tree on the left section shows the available logpoints, with these filters:
Only my logpoints
- Show only logpoints created by the current userOnly the current repositories
- Show only logpoints for the repositories associated with the current projectOnly enabled logpoints
- Show only logpoints that are enabledSelect any logpoint to display its status and recently generated events, or to enable, disable, edit or delete it. To navigate to the source code location for a logpoint, double-click it or right-click and select Jump to Source.
The central section displays the status and recent event information for the selected logpoint. Select an event to view the generated log message, the captured variables, and the runtime stacktrace for the event. The list shows up to 50 events from within the past 24 hours.
At the top-right of the panel, View logs in Datadog opens the Log Explorer in Datadog to explore all log events for the selected logpoint.
The right section displays data for the selected logpoint event, including captured variables and the stacktrace for the event. This runtime context is invaluable for understanding issues and reasoning about the source code.
The Captures tab shows a tree view of variable values captured at runtime for the logpoint. Nested values are captured up to the depth limit defined in the logpoint. The data is fully searchable and you can copy selected items to the clipboard.
The Stacktrace tab shows the runtime path execution leading up to the logpoint. Double-click any frame in the stack trace to open the corresponding source file location.
In the source editor, an icon is shown in the gutter for any line that has a logpoint defined:
Click the icon to open the Datadog tool window and show the selected logpoint. Right-click the icon for options to enable, disable, edit, and delete the logpoint.
To add a logpoint, right-click on a line of code in the source editor and select Add a Log to a Live Service. A dialog appears where you can enter the service name, the environment, a template for the log message to be emitted at runtime, the variable capture depth, and a logpoint condition expression (optional):
The log message field accepts a log template that contains descriptive text and variable references—see the Dynamic Instrumentation expression language documentation for details. The log message is generated using the runtime state immediately prior to the line of code being executed. Generated log messages automatically pass through the Dynamic Instrumentation Sensitive Data Scanner.
When a condition is defined, log events are generated only when the condition evaluates to true. Use conditions to capture events based on runtime state (for example, a particular transaction or product identifier).
The Capture variables depth controls how deeply hierarchical data structures are traversed when capturing runtime values. Higher values provide more useful information but require more capacity.
Logpoints expire automatically after 48 hours. Logpoint events are rate-limited to 1 execution per second.
Notice that the remote code may be a different version compared to the source code in the IDE. The New Logpoint dialog displays the version of the code that is deployed remotely, if it can be detected, so that you can see exactly where the logpoint is being placed. This requires that your application or service is tagged with Git information.
To modify the log message for a logpoint, right-click the logpoint and select Edit:
You can update the log message, the logpoint condition, and the capture depth. Changing the service or environment requires deleting the logpoint and creating a new one.
Applying changes to the logpoint also extends the expiration time to 48 hours.
You can delete logpoints by right-clicking the icon in the gutter of the source editor, or the entry in the tool window, and selecting Delete from the context menu.
Deleting a logpoint does not delete the events already generated by the logpoint.
You can enable or disable logpoints by right-clicking and selecting the appropriate context menu item. The icon changes to indicate the current state of the logpoint:
Icon | Description |
---|---|
Active: Log events will be generated when the line of code is about to be executed. | |
Disabled: The logpoint is inactive, either because it automatically expired or the user disabled it manually. | |
Error: The logpoint is not generating log events due to an error. | |
Warning: The logpoint may not be generating log events. |
Disabling then re-enabling a logpoint extends its expiry time to 48 hours.
The Live Debugger feature in the IDE supports Java and Python and is subject to the same setup requirements as Live Debugger.