How do I trace the usage of functions and variables through a C++/Javascript project

I’m looking to map out the usage of Javascript in the 0 A.D. project, such as the flow of operations when the mouse is clicked. I have found functions that define parts of the process, but the points where the functions are called are in different files. I’m looking for some program that will walk through all the files, find those references, and tell me which file calls what and defines what. It cannot operate through the web browser because this Javascript is not designed to work with a web browser, but with a game engine written in C++… so unless there is a way to implement the trace in the game’s engine, some sort of file-walking tool would be best. I think this is called a static-trace?
Sorta what I’m looking for:

funcA() – fileA.js
  fileB.js – Line 144
  fileC.js – Line 12

  • Images upload to folder in Summernote editor
  • JavaScript Error in Internet Explorer 11
  • Unable to bind simple list array of strings to a ListView
  • cryptico.js encrypted message, must decrypt in C#
  • asp.net make function from jquery code
  • How to convert a Char by the position on the keyboard?
  • asp.net post javascript ajax to usercontrol
  • Page.IsValid check internals?
  • ASP.Net double-click problem
  • how to show exception variable value in alert box in asp.net using C#
  • Cannot display text in a label ClientID
  • Nancy model binding not working in Chrome, IE
  • One Solution collect form web for “How do I trace the usage of functions and variables through a C++/Javascript project”

    The Eclipse IDE can do this for C++ (eclipse CDT version).

    Select your function, then in the menu bar click “Navigate” -> “Open call hierarchy…”

    You can then select “callers” or “callees”.

    There is an eclipse version for javascript, maybe it can do it, too.