liveBook · Manning

Runtime variable modification

Runtime variable modification is the act of changing a program variable's value while execution is paused, typically during debugging.

How 2 Manning books explain it

Troubleshooting Java, Second Edition

Runtime data modification is changing program data while execution is paused to examine behavior under a custom state.

How it is used
Uses paused debugger execution to test suspected parameter values without waiting for complete reruns.
How deep it goes
Explains suitable scenarios, debugger actions, observed results, and complexity risks from changing multiple values.
Examples
Uses a long-running scheduled process, inaccessible production data, and the string "abcd" producing an empty digit list.
What you can do after
Diagnose/debug with it: alter one or two variables, step through execution, and compare behavior against a suspected condition.

Read how Troubleshooting Java, Second Edition explains runtime variable modification →

Troubleshooting Java: Read, debug, and optimize JVM applications

Runtime variable modification is changing a program variable’s value while the program is paused during debugging.

How it is used
Uses debugger-side value changes to create investigation scenarios when long-running execution or missing input data makes ordinary breakpoints costly.
How deep it goes
Explains when to alter in-scope values, demonstrates changing one and stepping over, and cautions against changing several at once.
Examples
Tests string "abcd" with extractDigits(), yielding an empty list, and discusses long-running processes and unavailable input data.
What you can do after
Apply it via a debugger to test a suspected condition by changing an in-scope value and observing subsequent execution.

Read how Troubleshooting Java: Read, debug, and optimize JVM applications explains runtime variable modification →

Related concepts

Questions about runtime variable modification

What is runtime variable modification?

Runtime variable modification is the act of changing a program variable's value while execution is paused, typically during debugging.

Which Manning books explain runtime variable modification?

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

What is the difference between runtime variable modification and conditional breakpoint?

Runtime variable modification is the act of changing a program variable's value while execution is paused, typically during debugging. A conditional breakpoint is a debugger breakpoint configured to trigger an action, such as pausing execution or logging information, when a specified condition is met.

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.