View actual HTML DOM
When you are debugging client-side code, the Elements tab of the Debug tool window shows the HTML source code that implements the actual browser page and its.
Any changes made to the page through the browser or in the editor are also immediately reflected in the Elements tab.
Currently this functionality is supported only for Google Chrome and only during a debugging session.
Before you start
Make sure the JavaScript and TypeScript and JavaScript Debugger required plugins are enabled on the Settings/Preferences | Plugins page, tab Installed, see Managing plugins for details.
Install and enable the LiveEdit plugin on the Settings/Preferences | Plugins page, tab Marketplace, as described in Installing plugins from JetBrains repository.
Configure the built-in debugger as described in Configuring JavaScript debugger.
To have the changes you make to your HTML, CSS, or JavaScript code immediately shown in the browser without reloading the page, activate the Live Edit functionality. See Live Edit in HTML, CSS, and JavaScript for details.
View the HTML source and DOM structure of the actual page
To initiate a debugging session, create a run configuration of the type JavaScript Debug and click the Debug button on the toolbar.
Switch to the Debug tool window and open the Elements tab. The tab consists of two read-only panes.
The Text pane shows the HTML source code of the page that is currently opened in the browser. As soon as any change is made to the page in the browser (e.g. clicking an icon), the code in the pane is updated accordingly.
The Structure pane shows the DOM structure of the HTML code in the Text pane.
To view a tree of executed scripts, open the Scripts tab.