Solved

Android: Step through code during debugging

Posted on 2013-12-02
4
423 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
  • 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 16

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 16

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
This is an explanation of a simple data model to help parse a JSON feed
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.

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now