Setting up the NDK in Eclipse

Hi,

I’ve seen this tutorial, but looks quite outdated: http://www.cocos2d-x.org/projects/cocos2d-x/wiki/How_to_run_HelloWorld_on_ndk_r4_and_r5

It only explains how can we deploy Cocos2D-x to eclipse, but it does not explain how can we enable eclipse to write JNI code, and what would be cool is being able to debug with the device directly on eclipse. Do you know if there is any tutorial about how to do that? Thanks.