Exploring My Technical Learnings... Which could be a doubt or solution..!
Monday, September 27, 2010
About CSCOPE utility under Linux....
Few days back, i came across an utility called CSCOPE which is mainy used for code browsing, sorry, effective code browsing. Useful for debugging and maitainance type of work. Before that, i never heard about CSCOPE...!
When i was working on Maintainance project under linux environment, we were using QTCreatoir IDE which was very slow for more than 10,000 source files. It was taking too much time to search for anything. Threre is no 'Go to Definition', 'Go to declaration' type of functionalities like Visual Studio IDE. Hence struggling a lot to work with QTCreator.
At the same time, one of my colleagues, was using different utility CSCOPE, using which he was finding patterns, functions etc easility with less time. I was watching the same for some days and finally asked about the same to learn CSCOPE. Within next 5 mins, i became a user of CSCOPE....!
It is a good tool to work with more number of source files ( .C and .H files) which uses c-tags for C files.
"cscope -R"
command will create some required files and symbol tables to make searching efficient. Here 'R' means recursive.
Go to root directory of your Source Tree and give this command. After some point of time, you will get a different user input screen to enter what you want. (as in the screenshot)
When you type any pattern of function call or simple string or whatever, you will get listed of source files with lot more information. Use up and down functions to select the files and Enter. Source file will be opened in vi editor. If you exit, once you will be in the same panel.
Good tool to work with....
Enjoy...
--
Subscribe to:
Posts (Atom)