liveBook · Manning

Chapter 2: Understanding your app’s logic through debugging techniques

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

This introduction defines a debugger and explains its role in understanding complex code.

After this chapter you will be able to

Section by section

Introduction

This introduction defines a debugger and explains its role in understanding complex code.

Key terms: debugger, execution, data

2.1 When analyzing code is not enough

This section explains why reading code can become complex and how a debugger helps navigate and observe its execution.

Key terms: reading code, data being processed, investigation, investigation plan, cognitive complexity, reading path, debugger, data

2.2 Investigating code with a debugger

This section explains how to focus a debugging investigation, pause execution with breakpoints, and inspect the information available at a pause.

Key terms: debugger, breakpoint, Debug option, Run option, variables in scope, execution stack trace, calling chain, execution path

2.2.1 What is the execution stack trace, and how do I use it?

This section explains how to read a paused execution stack trace and use it to uncover framework logic hidden from the apparent code path.

Key terms: execution stack trace, method names, class names, aspects, interceptors, execution chain, breakpoint, ProductController, ProductService, aspect

2.2.2 Navigating code with the debugger

This section explains debugger navigation operations and how to use them efficiently to investigate code.

Key terms: step over, step into, step out, execution stack trace, investigation plan, breakpoint, next execution line

2.3 When using the debugger might not be enough

This section explains when debugging alone may be ineffective and identifies other investigation approaches for those situations.

Key terms: pause the execution, class design, profiling, stubs, performance problems, logging, thread dump, crash, logs, thread dumps

2.4 Summary

Where this is used later

Concepts explained in this chapter

← Chapter 1: Revealing an app’s obscurities Chapter 3: Finding problem root causes using advanced debugging techniques →

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.