6 ms·
"cscope + ascope" is the best thing ever I found for groking the code(in emacs). It is great for getting your way around huge code base. I find myself using "as
by jbp 15y ago
"cscope + ascope" is the best thing ever I found for groking the code(in emacs). It is great for getting your way around huge code base. I find myself using "ascope-find-this-symbol" all the time, which gives me all occurrences/usages of that symbol.
- codemac 15y agoI know there is at least, cscope.el, xcscope.el, acscope.el, bcscope.el... What's the advantage to acscope vs. the others? I personally use xcscope, I don't even remember why I initially chose it...
- jbp 15y agoFrom: http://www.emacswiki.org/emacs/CScopeAndEmacs http://www.emacswiki.org/emacs/CScopeAndEmacs ascope is an improvement over xcscope that runs all queries through a single cscope process, instead of starting a new process and reloading the database for each query. It was made by Staton Sun as a merge between xscope and another single-process interface, bscope
- signa11 15y agoyeah without cscope it would be impossible to follow huge code bases. though i am not sure how good is cscope at generating symbol database for non-c languages. ideally, it would be really nice if cscope/xcscope provided some means of creating (and saving) bunch of call-stacks, which you can navigate in forwards/reverse direction (not sure if i am making much sense here...)
- jbp 15y agoI agree. For static callgraphs I use doxygen, for dynamic I use "m-x gdb" :-)
- codemac 15y agoYou can "pop" as you navigate around. Also, I've had a lot of luck with pycscope.py for python code + cscope tools. GNU Global needs some love though. It'd be awesome to see it handle more stuff.
- mark_h 15y agoI wrote this some time ago for navigating with (g|e)tags, allowing you to view the current stack as you drill down: https://github.com/markhepburn/tags-view https://github.com/markhepburn/tags-view (you can prune the stack too, so you only see the important bits of context) It worked well for my own usage, but it probably needs some love. I'm not sure how *cscope works though, and if it would be possible to add it as another backend.
- Peaker 15y agocscope and ascope still cannot find particular struct fields.