IntelliJ IDEA Plugin¶
Installing the plugin¶
Follow Jetbrains’ Install plugin from repository instructions, search for “LiveRecorder” in the Marketplace, press “Install” and restart IntelliJ IDEA.
IntelliJ IDEA setup¶
- Create a new run/debug configuration:
- Local Reverse Debugging:
- Open your project if it’s not already open.
- Choose Run → Edit Configurations, press the “+” button, and select “LiveRecorder → Application”.
- Choose the main class of the application that you want to debug and adjust the other options as required.
- Note that local live debugging is only supported in Linux.
- Remote Reverse Debugging:
- Open your project if it’s not already open.
- Choose Run → Edit Configurations, press the “+” button, and select “LiveRecorder → Remote”.
- Specify the machine running your application as the “Host” (or use
localhost
if your application is running on the same machine as IntelliJ). - Adjust the “Port” setting to match the port that you opened up into the remote environment.
- Replay Recording:
- Open an existing project or create a new project with the same version of source code that was used to make the recording that you wish to replay.
- Choose Run → Edit Configurations, press the “+” button, and select “LiveRecorder → Replay”.
- Specify
localhost
as the “Host” if you’re replaying on the same machine as IntelliJ, otherwise specify the machine that holds the replay environment. - Adjust the “Port” setting to match the port that you opened into the replay environment.
- Local Reverse Debugging:
Debugging in IntelliJ IDEA¶
- Choose the new Run/Debug configuration that you just added from the Run/Debug Configurations Dialog (highlighted below).
- Once you connect (see next step) the application recording will start running immediately. So you should consider adding breakpoint(s)/watchpoints(s) at areas of interest before you connect.
- Press the Debug button to connect.
- Use breakpoints, watchpoints and the normal navigation buttons to navigate the recording as for interactive debugging, plus the reverse buttons to run backwards.