I am not really sure if this is the right place to ask this question. But I am working with a code base that I am very new to and I want to see what functions are being called from a certain file using Chrome dev tools.
Asked
Active
Viewed 346 times
0
-
There are some ideas here by using your own code (not Chrome web dev tools) https://stackoverflow.com/a/5034657/10634638 – estinamir Feb 14 '19 at 22:02
1 Answers
1
If you're running the project locally, you might be able to check out the Sources
tab in devtools. If your project is set up propery to do so (i.e. not minified or something) you can usually navigate to the file that has the functions you want to check out. From there you can actually put break points on each function and step through them, or just see what values they're receiving. This is all assuming it's a web based project done in jquery, or react, or just plain old javascript, and not a node.js project or something similar.
Hope that helps!

Adam Lichter
- 140
- 3
- 7
-
Yeah of course you can always do that. However what if the file 4,000 lines of (I know not a good practice but it is what it is). – Tushar Chutani Feb 14 '19 at 18:23
-
Is it just one file? If you break on a known space, you can step over and into functions to see what they're being called with/what they're calling. I'm not personally sure of any other way to just see what functions are being called? edit: Capitalization – Adam Lichter Feb 14 '19 at 18:28