Getting started

You will need:

Recording and Replay tools

The Recording and Replay tools are supplied as LR4J-Record-*.zip. Unzip the archive and set LR4J_HOME to the lr4j directory it creates:

export LR4J_HOME=/path/to/lr4j

Refer to Recording an application and Live Debugging for how to use these tools. The archive also includes live-record, which records a JVM without the recording agent (see Recording with live-record).

The archive includes demo programs in $LR4J_HOME/demos/java/ that you can record and debug to get familiar with the tools. See the Python API example for a worked example using these demos.

Debugging with an AI agent

Register the MCP server with your AI agent, giving it your license key file, and the agent can open and debug recordings. The MCP Server describes the setup for Claude Code, Claude Desktop and Codex, and the bundled agent skill teaches the agent the whole workflow, from making a recording to finding the root cause. See Undo for Java AI.

Installing the Undo for Java plugin

In IntelliJ IDEA Settings (Ctrl-Alt-S, or ⌘, on macOS) › Plugins › Marketplace, search for Undo for Java, press Install and restart IntelliJ IDEA.

Under Settings › Tools › Undo for Java › License Key, paste your license key.

_images/license.png