Solved

Android: Step through code during debugging

Posted on 2013-12-02
4
431 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
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.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

728 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