Grants permission to control opt-in/opt-out code monitoring for the entire environment or by scope.
Example policy:
ALLOW settings:objects:read, settings:objects:write, settings:schemas:read WHERE settings:schemaId = "builtin:devobs.agent.optin";
Grants permission to manage Live Debugging breakpoints.
Example policy:
Allow managing breakpoints across the environment:
ALLOW dev-obs:breakpoints:manage;
If your application's code is being transpiled or bundled, you need to include the source maps, either in-line or as separate files.
inline-source-map or source-map values for the devtool option in the Webpack config file.inline, both or true values for the sourceMaps option in the Babel config file.inlineSourceMap or sourceMap fields to true as well as inlineSources to true in the TypeScript config file.-M (inline) or -m flags to the coffee CLI tool.sourceMap as well as inlineSources to true (setting inlineSourceMap isn’t enough in this case) in the TypeScript config file and use either the inline-source-map or source-map values for the devtool option in the Webpack config file.
Live Debugger works with uglified/minified code if it's provided with source maps. However, mangling (changing of variable names) should not be applied. Webpack may automatically mangle variable names when used in production.
const TerserPlugin = require("terser-webpack-plugin");module.exports = {// ...optimization: {minimizer: [new TerserPlugin({terserOptions: {mangle: false,},})],},};
Live Debugger requires your application to be built with debug information. While most modern Java build tools such as Gradle or Maven do so by default, some such as Ant and javac do not.
Here are a few examples of how to configure them:
<javac srcdir="${source-directory}"destdir="${classes-directory}"classpath="${lib-directory}"debug="true"/>
When debugging within a remote environment, you need to know exactly what source code it is executing.
Live Debugger integrates with your source control provider to fetch the correct source code for every environment.
Configure the following environment variables to enable automatic source code fetching:
DT_LIVEDEBUGGER_COMMIT - String that indicates your git commitDT_LIVEDEBUGGER_REMOTE_ORIGIN - String that indicates your git remote originFor multiple sources, use the environment variable DT_LIVEDEBUGGER_SOURCES to initialize the SDK with information about the sources used in your application.
DT_LIVEDEBUGGER_SOURCES is a semicolon-separated list of source control repository and revision information, joined by #. For example: DT_LIVEDEBUGGER_SOURCES=https://github.com/myorg/MyRepo#abc123;https://github.com/otherorg/OtherRepo#xyz789.
Live Debugger offers data masking rules to let you control sensitive data, giving you the ability to specify which data it should not collect and display to users.
For rule types, matching options, replacement values, and the configuration steps, see Mask sensitive data in Live Debugger snapshots.