LinuxTOY 是一个致力于提供 Linux 相关资讯的专题站点。如果您发现了好用好玩的 Linux 东东并愿意发扬自由、分享的精神,可以点击顶部导航 Contact 按钮进行投稿。

Related entries

  • No related posts

源代码阅读利器:Source Navigator

想阅读 linux 的源代码,却又苦于在扎堆的文件中寻找目标头文件?如果没有好的工具,那么阅读代码将成为一件苦差事。幸而世界上存在帮助你分析源代码的软件。Source Navigator 是 Red Hat 开发的一个 IDE,但我们一般不用它来开发,而是用来阅读源代码 ── 因为它能很好地解决文件定位和跳转问题(比如哪个函数在哪个头文件中出现,它将自动帮你做好链接)。

Source Navigator

Source Navigator 可从其官方网站上获取,也可直接从软件源中安装。在 Ubuntu 中,我们通过
sudo apt-get install sourcenav
安装,然后通过 snavigator 来运行。(好变态,看到没有,一个是 sourcenav,另一个是 snavigator)

运行第一步是要建立源代码的 project 以及扫描源代码文件,自动建立文件之间的索引。对 2.6 版本以上的 linux 来说,这项工作通常要花好几分钟。然后我们就可以畅游在 Source Code 中了。

Source Navigator 资源:
官方网站:http://sourcenav.sourceforge.net/
下载地址:http://sourceforge.net/project/showfiles.php?group_id=51180
文档:http://sourcenav.sourceforge.net/online-docs/index.html

在 Windows 下,与 Source Navigator 类似的软件为 Source Insight,要钱的,BS!

署名 • 注明出处 • 非商业性使用

18 Comments

  1. 1 max Commented @ 2008-11-20 11:39 amReply to this comment

    很好 很强大

  2. 2 daqing Commented @ 2008-11-20 11:56 amReply to this comment

    试试看.

  3. 3 gcell Commented @ 2008-11-20 12:05 pmReply to this comment

    很好,win下要钱,大家都来lin吧

  4. 4 yasker Commented @ 2008-11-20 12:34 pmReply to this comment

    check kscope.

  5. 5 Mike Commented @ 2008-11-20 12:35 pmReply to this comment

    用过。不过我更倾向于emacs+cscope

  6. 6 Doma Commented @ 2008-11-20 12:39 pmReply to this comment

    说两点
    1. 这个Source Navigator用tcl写的,是很老的东西了!
    2. Source Insight是要钱的那又怎么样!要啥软件都免费,你喝西北风去啊!

  7. 7 freesky Commented @ 2008-11-20 12:49 pmReply to this comment

    下来试试看!

  8. 8 MDZ Commented @ 2008-11-20 1:05 pmReply to this comment

    @Doma:
    1. 老东西不代表没用。
    2. 如果喝西北风能饱的话,我愿意喝去。你误会我的意思了,我并没有“让”啥软件都免费,本人不是上帝,但我有权发表自己对软件的看法。

  9. 9 davix Commented @ 2008-11-20 1:50 pmReply to this comment

    vim+ctag+cscope
    圖形界面的有kscope

  10. 10 linuxuser Commented @ 2008-11-20 2:58 pmReply to this comment

    vim+ctags+cscope+grep很好用,阅代码之利器啊。比那些什么的好用多了

  11. 11 zealtea Commented @ 2008-11-20 4:35 pmReply to this comment

    貌似更新了,老树发芽了。
    September 20, 2008:

    Source-Navigator 6.0 released!

    * Based on the development of SN NG
    * Improves performance and usability
    * All projects have to be reloaded due to database changes!

  12. 12 tengel Commented @ 2008-11-20 5:18 pmReply to this comment

    不容易啊,居然又更新了,居然可用了

  13. 13 cylinc Commented @ 2008-11-20 7:45 pmReply to this comment

    是啊,都6.0了感觉界面还是不那么友好,不过很有动感

  14. 14 teawater Commented @ 2008-11-21 1:28 pmReply to this comment

    建议用kscope 比Source-Navigator还用多了

  15. 15 tmpcc Commented @ 2008-11-21 3:28 pmReply to this comment

    这个可以在windows用的

  16. 16 Leo Commented @ 2008-11-21 4:54 pmReply to this comment

    看看。。。

  17. 17 bobo Commented @ 2008-11-22 9:33 pmReply to this comment

    比较差,应该是很差的说, source insight很不错, 如果想在 linux 下看源码, 最好的方法是用wine来运行source insight………….

  18. 18 ss Commented @ 2008-12-03 8:30 amReply to this comment

    vim+ctag+cscope :
    http://v.youku.com/v_show/id_XNTY4MDY5Njg=.html