Solved

Android: Step through code during debugging

Posted on 2013-12-02
4
430 Views
Last Modified: 2013-12-04
Hi

I am a VB.net developer starting Android development.
Is it possible to step through code like the following when debugging
as you would in VB.net?


@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // Get the message from the intent
    Intent intent = getIntent();
    String message = intent.getStringExtra(MainActivity.EXTRA_MESSAGE);

    // Create the text view
    TextView textView = new TextView(this);
    textView.setTextSize(40);
    textView.setText(message);

    // Set the text view as the activity layout
    setContentView(textView);
}
0
Comment
Question by:murbro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
btdownloads7 earned 167 total points
ID: 39692375
Yes -- any IDE that you use had a debugging mode. For example, in Eclipse, you can launch the debugging by pressing F11 (as opposed to CTRL+F11 for running it normally). You can put breakpoints on any line where you want the debugger to stop by pressing Ctrl+Shift+B on those lines. And once the debugger stops at those lines, you can debug line-by-line.
0
 
LVL 17

Assisted Solution

by:Chris Harte
Chris Harte earned 333 total points
ID: 39695135
This is where to get the elipse ide with the android developer toolkit as a single download.

http://developer.android.com/sdk/index.html

It is as close as you are going to get to visual studio.
0
 
LVL 17

Assisted Solution

by:Chris Harte
Chris Harte earned 333 total points
ID: 39695151
Though Xamarin, whom I had never heard of before today, do a VS plugin.

http://xamarin.com/visual-studio

If you try it, let us know if it is any good or not.
0
 

Author Closing Comment

by:murbro
ID: 39695163
Thanks very much
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Everyone is using a smartphone these days. Contacts, messages, applications, documents, bookmarks, pictures, videos and other stuff which you created and are present only on your device come under the umbrella called “Personal Data”.…
Once again I push the limits of my phone.  An introduction to the Android Google Now Launcher.
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question