TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Cscope: A developer's tool for browsing source code

82 点作者 phab超过 4 年前

15 条评论

rramadass超过 4 年前
An Oldie but a Goldie.<p>Related &quot;CodeQuery&quot;(<a href="https:&#x2F;&#x2F;github.com&#x2F;ruben2020&#x2F;codequery" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ruben2020&#x2F;codequery</a>) which uses both cscope and ctags databases (i use both for C&#x2F;C++ code from within vim) and provides a GUI frontend.<p>Combine with &quot;Doxygen&quot; and &quot;GNU cflow&quot; (<a href="https:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;cflow&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;cflow&#x2F;</a>) and you get a very good view of the static structure of any codebase.<p>To get a Runtime view i prefer the call graph emitted by the profiler gprof.
macjohnmcc超过 4 年前
A great tool for understanding source code is Source Trail. Supports parsing of C&#x2F;C++, Python and Java currently. I love tools that help understand a large code base.
评论 #25610089 未加载
pokgak超过 4 年前
What would be the workflow when using such tools like this or Source Trail? I&#x27;ve used cscope once while I&#x27;m testing out vim as my main text editor a bit.<p>Nowadays I&#x27;m using the global search feature of vscode for code exploration. Combined with the available language server for each language, it seems to work well enough for me currently.
评论 #25610183 未加载
1vuio0pswjnm7超过 4 年前
More direct link:<p><a href="https:&#x2F;&#x2F;sourceforge.net&#x2F;projects&#x2F;cscope&#x2F;files&#x2F;" rel="nofollow">https:&#x2F;&#x2F;sourceforge.net&#x2F;projects&#x2F;cscope&#x2F;files&#x2F;</a><p>I set the forward proxy automatically rewrite <a href="http:&#x2F;&#x2F;subdomain.sourceforge.net" rel="nofollow">http:&#x2F;&#x2F;subdomain.sourceforge.net</a> links into the above <a href="https:&#x2F;&#x2F;" rel="nofollow">https:&#x2F;&#x2F;</a> format.
评论 #25611791 未加载
zoomablemind超过 4 年前
I used Geany editor (well, it&#x27;s a &quot;lightweight IDE&quot; GTK based, Scintilla powered) for its ctags integration.<p>Also helpful for exploration of unknown code. However, in general it navigates between files opened already (as it generates ctags on open). But allows loading an externally generated ctags file. Also does symbol usage lookup and auto-completion.
erwincoumans超过 4 年前
A more recent open source tool, NSA Ghidra can also navigate sources, and decompile assembly back to C code. See <a href="https:&#x2F;&#x2F;github.com&#x2F;NationalSecurityAgency&#x2F;ghidra" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;NationalSecurityAgency&#x2F;ghidra</a>
signa11超过 4 年前
for purely c based codesbases i don’t think there is anything better that is freely available (would _love_ to hear about equivalent alternatives though. ctags etc don’t seem to have similar functionality afaik)<p>cacope has excellent emacs integration as well.<p>for c++, unfortunately, cscope was ok till about c++-98, but modern incarnation of the standard seem to have given rise to a slew of tools for code navigation.<p>most notable amongst them being around the notion of compilation databases and language servers etc. unfortunately though, for large codebases (&gt;= 1 giga-lines) in my experience they don’t seem to offer anything better, and need to be used in conjunction with grep and their modern incarnations f.e ripgrep etc. making the entire workflow quite unwieldy...
fmakunbound超过 4 年前
Has a great Emacs interface, too.
29athrowaway超过 4 年前
You also had Kscope which was a KDE frontend for cscope.<p>Currently an unmaintained project. <a href="https:&#x2F;&#x2F;sourceforge.net&#x2F;projects&#x2F;kscope&#x2F;" rel="nofollow">https:&#x2F;&#x2F;sourceforge.net&#x2F;projects&#x2F;kscope&#x2F;</a>
评论 #25642720 未加载
dejj超过 4 年前
What’s the diff of features compared to VSCode’s language server interface?
评论 #25610196 未加载
bch超过 4 年前
Amazing that the last update was apparently 8 years ago. My workflow works better w ctags, but when ctags lack, cscope can usually fill the gap.
评论 #25612312 未加载
dhoerl超过 4 年前
OMG I used this in the early 80s - first time I’ve seen it mentioned in 30 years!
fctorial超过 4 年前
Is it C only? Does it index assembly files (.S) as well?
new_realist超过 4 年前
Obsolete.
评论 #25610154 未加载
adamnemecek超过 4 年前
Pls use VS Code.
评论 #25610724 未加载