liveBook · Manning

Drop frame

A debugger operation that removes active call-stack frames to return execution to an earlier call, allowing that call to be run again.

How 2 Manning books explain it

Troubleshooting Java: Read, debug, and optimize JVM applications

A debugger operation that removes one or more active call-stack frames, allowing execution to return to an earlier call and replay it.

How it is used
Rewinds a debugger to replay a method call during code investigation.
How deep it goes
Defines the operation, contrasts it with stepping out, and warns that external side effects are not undone.
Examples
Uses extractDigits() called from decode(), and a file-creation operation to illustrate replay and persistent effects.
What you can do after
Apply it in IntelliJ IDEA to return to a method’s call site and replay the call.

Read how Troubleshooting Java: Read, debug, and optimize JVM applications explains drop frame →

Troubleshooting Java, Second Edition

A debugger operation that returns execution to an earlier point in the call stack and re-runs a method from that point.

How it is used
Uses debugger execution-stack control to replay a method during root-cause investigation.
How deep it goes
Explains stack movement, replay, stepping-out differences, IDE operation, and irreversible side effects.
Examples
Demonstrates extractDigits() called by decode() and Files.createFile() changing the filesystem.
What you can do after
Diagnose/debug with it by returning before a method call and replaying execution without restarting the application.

Read how Troubleshooting Java, Second Edition explains drop frame →

What to know first

Related concepts

Questions about drop frame

What is drop frame?

A debugger operation that removes active call-stack frames to return execution to an earlier call, allowing that call to be run again.

Which Manning books explain drop frame?

Troubleshooting Java: Read, debug, and optimize JVM applications and Troubleshooting Java, Second Edition.

What should I know before learning drop frame?

Manning books that teach drop frame usually introduce stack trace and database transaction first.

What is the difference between drop frame and Step Out?

A debugger operation that removes active call-stack frames to return execution to an earlier call, allowing that call to be run again. Step Out is a debugger command that resumes execution until the current function or method returns to its caller, where execution pauses.

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.