Debugging is one of the most important steps in app development. Android Studio contains several tools which can
help you out in stabilizing and optimizing your app.
In this book, you’ll learn to use Android debugging tools to make your app optimized and bug-free through step-by-step tutorials.
Before You Begin
This section tells you a few things you need to know before you get started, such as what you’ll need for hardware and software, where to find the project files for this book, and more.
Section I: Debugging Basics
Debugging is the core of every development process. This term represents steps for detecting and fixing issues that can cause unexpected behavior in your app.
In the first chapter, you'll prepare your debugging environment by learning to use some Android Studio debugging tools.
In this chapter, you'll learn all about breakpoints and how to navigate your suspended code so that you can debug and evaluate it.
This chapter will teach you how to use the Logcat window in Android Studio, how to customize and filter it and how it can help you spot and fix bugs. You'll also learn the best practices for sending custom logs in app development.
This chapter will dive deep into using the stack trace to understand what your app is doing, the tools you can use to navigate it and how to fix bugs.
In this chapter, you'll learn how to observe and augment your variables when debugging an app to help you locate and fix problems and save you time when developing new logic.
In this chapter, you'll learn how to use the Layout Inspector to view, analyze and improve your Android views.
This chapter will teach you how to explore, debug and modify queries from the Database
in your Android app using Database Inspector.
This chapter will teach you how to debug background tasks or services, trace long-running operations and extract underlying details.
Section II: The Android Profiler
Now that you got a feeling of how to manage the debugging process, you’ll start learning more complex tools. In this section, you’ll meet a really powerful set of tools called Android Profiler. This tool package provides gear for examining app performance in depth.
In this chapter, you'll learn how to harness all the power the Android Studio CPU Profiler offers!
This chapter will teach you to look into memory footprints, identify memory leaks and optimize your app's memory usage.
This chapter will teach you how to debug network requests sent from the app, dissect details and prevent unnecessary network calls.
This chapter will teach how to use the Energy Profiler to find resource-hungry operations and optimizing for minimal resource consumption.