Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebug cd equivalent in Chrome console / developer tools

In firebug, you can use the cd command to change the console context to an iframe. I need this when developing a facebook app to debug my javascript inside the iframe.

How do you do this in google chrome?

like image 620
user545139 Avatar asked Jul 30 '11 23:07

user545139


People also ask

How do I use Developer Tools in chrome console?

To open the developer console in Google Chrome, open the Chrome Menu in the upper-right-hand corner of the browser window and select More Tools > Developer Tools. You can also use Option + ⌘ + J (on macOS), or Shift + CTRL + J (on Windows/Linux).

What is Sources tab in Chrome dev tools?

At its simplest, the Sources tab allows you to set breakpoints and evaluate expressions in Javascript whether that Javascript was loaded from a separate file or was part of the page as illustrated in figure 1, below, which is a screen shot of the very simple Example 1.


1 Answers

No "cd" command yet, but it seems that we'll have a "dropdown list with all iframes to allow selecting current evaluation context for console expressions" in upcoming releases.
See http://trac.webkit.org/changeset/91839

like image 52
Fabrice Avatar answered Oct 29 '22 07:10

Fabrice