liveBook · Manning

Chapter 3: Finding problem root causes using advanced debugging techniques

What you will learn in chapter 3 of Troubleshooting Java: Read, debug, and optimize JVM applications

This introduction previews advanced debugger approaches for investigating code more efficiently.

After this chapter you will be able to

What it builds on

Section by section

Introduction

This introduction previews advanced debugger approaches for investigating code more efficiently.

3.1 Minimizing investigation time with conditional breakpoints

This section explains how conditional breakpoints focus debugging on specific cases, how to configure them, and their performance and IDE-related limitations.

Key terms: conditional breakpoint, step over, Boolean expression, sum == 0, IntelliJ IDEA, conditional breakpoints, breakpoint conditions, expression values, stack traces

3.2 Using breakpoints that don’t pause the execution

This section explains how to use a non-suspending breakpoint to log execution details for later investigation.

Key terms: conditional breakpoint, suspend, execution stack trace, digits variable

3.3 Dynamically altering the investigation scenario

This section shows how to change variables during debugging and when that approach is useful compared with conditional breakpoints.

Key terms: conditional breakpoints, changing data on the fly, variables’ values, variables in scope, debugger, step over, extractDigits(), execution stack trace, visual representation, text representation

3.4 Rewinding the investigation case

This section explains how to replay a method call by dropping a debugger frame, how that differs from stepping out, and why external changes make replay risky.

Key terms: dropping an execution frame, execution stack trace, stepping out, investigation plan, Drop Frame, dropping the frame, external changes, filesystem, Files.createFile()

3.5 Summary

Where this is used later

Concepts explained in this chapter

← Chapter 2: Understanding your app’s logic through debugging techniques Chapter 4: Debugging apps remotely →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.