Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The thing is, I have this big website with lots of JavaScript files and stuff. And I am trying to change the jQuery UI accordion plugin's settings so that it wouldn't do auto height of the wrapper based on it's contents. I am trying to figure out where this accordion is being called. But it's giving me headache as there are lots of JavaScript files. Tried to search for "accordion" keyword. But it seems to be not finding it either.

Since this would be a waste of time, I was thinking whether there is anyway that we could debug the JavaScript function calls, so that it would output to the console, the filename and line number for each function calls.

I tried to play with the Developer Tools to see if there is a facility like that. But was not successful. So thought of posting it here and could see if there is some other way or tools to do this.

share|improve this question

migrated from Dec 30 '13 at 10:49

This question came from our site for pro webmasters.

up vote 4 down vote accepted

Put console.trace() in the function and check console. It will print where a call is coming from.

share|improve this answer
Been looking for this answer for a long time, thank you! – battletoilet Sep 12 '14 at 17:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .