Chrome dev tools allow to change javascript execution context.
It's very handy and I use it a lot in the debugging process.
But I need to test my project in Firefox and I can't find UI to change the execution context.
Does the Firefox has this feature?
The Firefox DevTools have the same feature.
When a page contains at least one iFrame, there is a new button at the upper right corner of the DevTools window:
Clicking this button opens a menu, which allows you to select the iframe. Hovering over the different entries even highlights the iframe or main document within the page to make it easier to identify them:
In contrast to the Chrome DevTools, this feature changes the context in all the panels, e.g. the Inspector will also be restricted to the document of the selected iframe.
You may need to enable it first. To do so, open the Settings panel (e.g. by pressing F1), then check the option Select an iframe as the currently targeted document:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With