As I understand it, everything that is written in the browser console is executed as what is written in the global osprey. How can I go to a block, for example, to a function block inside require? Example:

require([...], function loaded() { .. здесь } ); 

  • it is not at all clear what you want to ask and what result to get - Grundy
  • What you write in the global skoupe - performed in the global skoupe. You can’t get into the already existing local download, except through step-by-step code execution with breakpoints. - Dmitriy Simushev 2:49 pm
  • Google
  • @Yuri, no, you can't. But, you can put a breakpoint inside this block, and when it works, you can - Grundy
  • @Grundy is just what I wanted to know - Yuri

1 answer 1

Put a breakpoint inside the block. This can be done in two ways. Enter the debugger operator in the part of the code within which you want to debug the skoup.

 function() { debugger; } 

Or find the necessary line of code in the browser inspector and put a breakpoint there. This can also be done via WebStorm.

Then run the code for execution, when it reaches your breakpoint, you can execute the code in the console within the scope.