Preview
To enable Observability for Developers (Live Debugger), ensure that your OneAgent is up to date and deployed correctly and that your admin enables the Observability for Developers feature in the settings page. For more detailed information, please see the deployment section.
To use the Live Debugger app, ensure that your One Agent is up to date and correctly deployed, and that your administrator has enabled the Observability for Developers feature. For more information, go to the enablement section.
To start using the Live Debugger:
Open the Live Debugger through the applications page. If Live Debugger is not showing, install it from the Dynatrace Hub.
To start your debugging session, open the Customize your debug session page by selecting the Debug Configuration edit button located on the top-left corner of the application.
You'll need to select one or more filters from either the Facets/Categories or by using the free search box to scope the instances you would like to debug. Filters can also be set through the Facets/Categories right pane, which can be opened by selecting a specific instance item in the list.
Each debug session contains the source code you wish to debug. The Live Debugger application lets you quickly load sources from your local file system and Git provider. When you integrate your source code into the Live Debugger application, it remains between your code repository and your local browser.
There are two main ways you can import your source code:
Automatic fetching
Manual fetching
+
icon on the right top corner of the Set up your session page will open a list with the supported git providers you're able to fetch sources from.The Live Debugger integrates directly to the cloud editions of the following Git Providers, both On-Premises and SaaS:
To enable the Live Debugger to integrate with your Git provider:
To get real-time code-level data, follow these steps:
Non-breaking breakpoints
are reference breakpoints for the lines of code from which you want to collect debug data. These breakpoints will not stop your code from running; instead, they will carry the debug data collection request. Placing these breakpoints and receiving the derived snapshots will not affect your application or its users.
After placing a non-breaking breakpoint, make sure your code has been triggered, so that the data will be collected and appear immediately in the application.
Once the non-breaking breakpoint is triggered, the collected data will be displayed as snapshot items in the bottom-left panel. By selecting a specific snapshot, you can view all local variables and their values, process information, the complete stack trace leading to the breakpoint, and tracing information from the running application. You can also debug code up the stack from the stack trace view, including third-party components.