Debug过程鼠标悬停在复杂结构体显示相应参数

来源:互联网 发布:mac安装hexo 编辑:程序博客网 时间:2024/05/21 10:52

DebugTextHover 继承了ITextHoverExtension2(自3.4)

Interface ITextHoverExtension2 鼠标悬停显示内容,此扩展点说明文档:

https://www.cct.lsu.edu/~rguidry/eclipse-doc36/org/eclipse/jface/text/ITextHoverExtension2.html#getHoverInfo2%28org.eclipse.jface.text.ITextViewer,%20IRegion%29

ndk调试c、c++配置教程:

1.环境配置参考:http://blog.sina.com.cn/s/blog_4c451e0e01013592.html

2.代码编写参考:http://www.cnblogs.com/hibraincol/archive/2011/05/30/2063847.html   http://taylorpeer.com/hello-world-cpp-android-ndk/

3.我的配置参考:(根据以上参考链接完成基本设置后)

(1)右键项目,进入debug设置,在c/c++ Application下选中相应工程,在main选项卡中,c/c++ Application处填写相应工程下的obj/local/armeabi/app_process,如没有在项目下使用ndk-gdb命令生成。

选中disable auto build。

(2)debugger选项卡,debugger选择gdbserver。

取消选中stop on start up at前面的勾。

debugger option的main选项卡:gdbserver:/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gdb。这里使用的版本如果不正确,可能会debug失败。

gdb commond file:obj/local/armeabi/gdb2.setup.(gdb2.setup这个文件自己建立,因为每次build都会产生gdb.setup,而我们不需要它)

gdb2.setup文件内容(路径应为绝对路径):

set solib-search-path /adt-bundle-linux-x86_64-20131030/workspace/HelloNDKJNI/obj/local/armeabi directory /android-ndk-r9b/platforms/android-15/arch-arm/usr/include directory /adt-bundle-linux-x86_64-20131030/workspace/HelloNDKJNI/jni

选中verbose console mode便于在console查看命令行。

选中use full file path to set breakoints

connection子选项卡,type选TCP,portnumber为5039.

(3)项目下的androidmanifset.xml文件,application选项卡,debuggable一栏设置为true。

0 0