0

Using the standard Hello-jni NDK example, I am trying to "Step Into" a C function in Android Studio. However the debugger denies any attempt to enter into the stringFromJNI() function, which is done by pressing the F7 function key. It simply step over instead.

    TextView  tv = new TextView(this);
    // how to step into stringFromJNI() function?
 => String s = stringFromJNI();
    tv.setText( s );
    setContentView(tv);

Does anybody know how to do cross-language debugging in Android Studio?

Thx!

Benny Khoo
  • 725
  • 6
  • 15

1 Answers1

1

You can't do native debugging in Android Studio 1.0. It's not implemented. If you're using Eclipse, there's some help at Debug native code in Android Library but this hasn't been done in Android Studio yet.

Community
  • 1
  • 1
Scott Barta
  • 79,344
  • 24
  • 180
  • 163