Overview
Instantly access live, code-level data to troubleshoot and understand complex, modern applications - with no extra coding, redeployments, or restarts.
Code Monitoring by Dynatrace allows you to get the real-time debug data you need from running applications, allowing you to troubleshoot and debug quickly, in any environment, from dev to production. With a single click, developers can access the relevant data without adding additional code, waiting for redeployment, or attempting to reproduce issues locally. Instantly see the full state of your app, including stack trace, variable values, and more, all without stopping or breaking your running code.
This is the first tool offered within the Code Monitoring extension, with more to come soon!
Requirements
- A Dynatrace account
- Access to Live Debugging on Dynatrace
- VSCode version 1.85.0+
Installation
You can install the extension from the Microsoft Visual Studio Code Marketplace or directly from the extensions tab inside your Visual Studio Code IDE.
How to use
- Install the extension.
- Open the Dynatrace Snapshots panel.
The panel is located at the bottom of the IDE.
- Log in to your Dynatrace account from the Dynatrace Snapshots panel.
- Select the environment you’d like to debug by clicking on the cloud icon in the Dynatrace Snapshots panel header.
The environment picker will open above, displaying all Dynatrace environments where you have Live Debugging permissions. Select an environment from the list.
- Configure your debug session by clicking on the pencil icon in the Dynatrace Snapshots panel header.
Only instances with Live Debugging enabled will appear.
Select filters for the instances you’d like to debug and click “Set”.
- Add a Live Debugging breakpoint.
Right click next to a line number to add a Live Debugging breakpoint.
The breakpoint will be applied to instances matching the filters you configured in step 5, within the environment selected in step 4.
- View data.
When your breakpoints are triggered data will stream into the Dynatrace Snapshots panel. Click on a snapshot to see local variables, stack trace, process information and tracing data.
More info
For more info, see the docs.