Search code examples
javascriptgoogle-chrome-devtools

Set Execution Context Selector in Chrome via console


I'm working with JavaScript and need to refresh the browser a lot. The Execution Context Selector always jumps back to "top".

Is there a line of code that automatically sets the desired file.

Just to be sure, here is a picture of the Execution Context Selector

Sorry, it's not possible for me to embed yet. Longtime lurker, this is the first time I can't find an answer.


Solution

  • You can use debugger; statement in your code devtools will break on this line of code and execution context will be automatically set.