Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android Build a Simple Android App (2014) Testing and Debugging Debugging with DDMS

Naivedya Bansal
Naivedya Bansal
5,483 Points

I did not get the use of the step into button.

Please explain the meaningg of stepping into the current function.

1 Answer

Josh Gold
Josh Gold
12,206 Points

If you are using Android Studio, this might help: https://developer.android.com/tools/debugging/debugging-studio.html

Debug your app with breakpoints

After you set breakpoints in your code, click Rerun to start the app again. When a breakpoint is hit, Android Studio pauses the app and highlights the breakpoint in the source code. The Debug tool window lets you examine variables and control the execution step by step:

To examine the object tree for a variable, expand it in the Variables view. If the Variables view is not visible, click Restore Variables View . To evaluate an expression at the current execution point, click Evaluate Expression . To advance to the next line in the code (without entering a method), click Step Over . To advance to the first line inside a method call, click Step Into . To advance to the next line outside the current method, click Step Out . To continue running the app normally, click Resume Program