Live Debugger IDE integration

Latest Dynatrace

With Live Debugger, you can redirect Live Debugger application output to your own IDE environment. Currently, Dynatrace supports Visual Studio Code and the JetBrains suite.

Requirements

  • JetBrains version 1.0.3+
  • VSCode version 2.0.1+

VSCode extension

Getting started

  1. Install Observability for Developers by Dynatrace.

  2. Open the Dynatrace Session Configuration panel by clicking on the extension’s icon in the left-hand gutter of the IDE.

    From the session configuration panel:

    1. Sign in to Dynatrace.
    2. Select the environment you'd like to debug. The environment picker will open above, displaying all Dynatrace environments where you have Live Debugging permissions. Select an environment from the list.
    3. Configure your debug session. Only instances with Live Debugging enabled will appear. Select filters for the instances you'd like to debug and select Set.
  3. 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.

  4. View data. When your breakpoints are triggered, data will stream into the Snapshots panel. Select a snapshot to see local variables, stack trace, process information, and tracing data.

  • Session Configuration All session configuration options can be accessed via the Snapshots panel at the bottom of the IDE. Open the panel and hover on the header to see the configuration options.

  • Breakpoints To add a breakpoint, right-click on the line of code where you'd like to get live debugging data.

    You can interact with your breakpoints directly from the code (right-click on the breakpoint icon)

    1. Breakpoint list – can be found on the left pane of the IDE by clicking on the extension's icon in the activity bar. Click on a breakpoint in this list to view its status and editor.
    2. Breakpoint context menu – right-click on a Live Debugging breakpoint to see its options:
      • Edit Breakpoint…
      • Breakpoint Status…
      • Disable Breakpoint
      • Remove Breakpoint

Data

All Live Debugging data for the session will appear in the Dynatrace Snapshots panel.

JetBrains Plugin

Getting Started

  1. Install Observability for Developers by Dynatrace and restart you IDE.
  2. Open the Observability for Developers panel at the bottom of the IDE.
  3. Sign in to Dynatrace.
  4. Select the environment you want to debug by selecting the dropdown in the panel header. The environment picker displays all Dynatrace environments where you have Live Debugging permissions.
  5. Configure your debug session by selecting the Filter Applications panel header. Only instances with Live Debugging enabled are displayed. Select filters for the instances you want to debug and select Apply.
  6. Add a Live Debugging breakpoint. Select next to a line number to set a breakpoint, and then choose Live Debugging Breakpoint from the list. The breakpoint will be applied to instances matching the filters configured in step 5, within the environment selected in step 4.
  7. View data. When your breakpoints are triggered, data is streamed into the Observability for Developers panel. Select a snapshot to view local variables, stack trace, process information, and tracing data.
  • Session Configuration All session configuration options can be accessed via the header of the Observability for Developers panel at the bottom of the IDE. Open the panel and hover over the header to see the configuration options.

  • Breakpoints To add a breakpoint, select the line of code where you want to receive live debugging data, and then choose Live Debugging Breakpoint.

    You can interact with your breakpoints directly from the code. Select the breakpoint icon to open the Breakpoint editor.

    Select More in the Breakpoint editor to access advanced editing options and to view all breakpoints in this session.

Data

All Live Debugging data for the session is displayed in the Observability for Developers panel.