Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
The Android Studio Debugger allows us to monitor our application in real time, and can provide additional insight regarding a connected device or emulator.
Without writing extra code in our program, we can use it as hit and try method to conclude the range of values at run time. We can save our time to check result of every operation which is performed on a particular variable or group of variables. It is also useful to check flow of our code.
In order to pause the code at a given location, we need to add something called a breakpoint. A breakpoint is a language-agnostic term meaning the location at which code is intentionally paused.
Just simply click on the space between lift side of code and line number, a red-dot will appear which is called break-point.
You can check break-point in below image also :
You can start debugging in 2 ways:
Run your app in debug mode.
Start debugging at any point in app. Add break-point in code, click on debug button and select device.
Blue Line -> It shows on which line we have controller of program.
To evaluate value ->
Now, we can evaluate range of values of used hashmap variable at run-time.
Example: Please see below images to see range of values or how to perform operations on selected variable and it’s result.
Here, we are getting list inside hashmap key “1”.
As, hashmap does not contain key “5”, so we are getting result null.
As, list inside hashmap key “1” having not value at index 3, so we getting error.
Break-point pause the execution of code of further lines.
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
Webkul is a truly trusted and supported IT Company to develop business ideas for e-commerce. They provide professional support after deploying the solution to production and be responsible to act for fixing the reported issues or system errors. We highly encourage to deal with Webkul for business development.
Hussein Zawia
Co-founder, 24Dokan
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.