views:

9

answers:

1

I set a toggle breakpoint at line 36 of the main class, of APIDemos 8, the debug begins at the OnCreate but never processes another line in the class. Why is that?

Here's the code starting a line 36.

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

        Intent intent = getIntent();
        String path = intent.getStringExtra("com.example.android.apis.Path");

        if (path == null) {
            path = "";
        }

etc...

A: 

You say "the debug begins at the OnCreate"? So is it actually stopping execution and waiting for you?

What are you pressing to continue?

F5 will execute the line, stepping into any methods F6 will execute the line, but won't step into any methods F7 continues out of the current method F8 continues until the next breakpoint

http://eclipse-tools.sourceforge.net/shortcuts.html

I also put the BP's on the first line of actual code, not the declaration, as that's where the debugger stops anyway.

Cylindric