3 Finding problem root causes using advanced debugging techniques
This chapter covers
- Using conditional breakpoints to investigate specific scenarios
- Using breakpoints to log debug messages in the console
- Changing data while debugging to force the app to act in a specific way
- Rerunning a certain part of the code while debugging
In chapter 2, we started discussing the most common ways to use a debugger. When debugging a certain piece of implemented logic, developers often use code navigation operations such as stepping over, stepping into, and stepping out of a line. Knowing how to properly use these operations helps you to investigate a piece of code to better understand or find an issue.
But a debugger is a more powerful tool than many developers ...
Get Troubleshooting Java now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.