GithubHelp home page GithubHelp logo

lab-debugger-1's Introduction

lab-debugger

This repository contains code examples to use in learning Android Studio's Debugger tool.

If you haven’t already, you should Fork and Clone this repo in order to complete the tutorial.

How to start the project

  1. Start Android Studio and select Open an existing Android Studio project.

  2. Navigate to the folder for lab-debugger, select that folder file, and click OK.

The Calculator project builds. open the project view if it is not already open.

How to use the Debugger

In this task you'll get an introduction to the debugger in Android Studio, and learn how to run your app in debug mode.

  1. Start and Run your app in debug mode: Run > Debug app or click the Debug icon in the toolbar.

  2. Open the MainActivity.java file and set a breakpoint by clicking in the left gutter of the editor window at the line. A red dot appears at that line, indicating a breakpoint.

  3. In the Calculator app on a device, enter a number and click one of the buttons. The execution of your app stops wen it reaches the breakpoint you set, and the debugger shows the current state of your app at that breakpoint.

  4. Resume your app's execution with Run > Resume Program or click the Resume icon on the left side of the debugger window.

What to do

The app contains 4 errors that you will need to find and fix using the Debugger.

When you are done finding and fixing the errors, commit your changes and push them back up to your forked repository (the origin) using the command:

git push origin

lab-debugger-1's People

Contributors

anisub710 avatar alemaulou avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.