Let us see how to jump into the code in JavaScript sources from console by following the steps below
- Get the control instance in the console window ==> var control_instance = $($0)
- call the method name of the instance without the paranthesis. ==> control_instance.method
- It will print out the lines of code from the method ‘method’ of control_instance class.
- now double click on those lines of code. It will take us to the corresponding javascript file/code in the Sources tab of chrome developer ( Please see below picture )