How to see current version of firefox code#
You can see that the code is in the function that handles a mouse click, and that the code is currently paused on the breakpoint. The Call stack section shows you what code was executed to get to the current line. The final two sections only appear when the code is running. In example.js, a breakpoint has been set on the statement listItems.push(inputNewItem.value) The next section, Breakpoints, lists the breakpoints set on the page. You can expand the list to view the values in the array. In the image, the first section, Watch expressions, shows that the listItems variable has been added. The right-hand pane shows a list of the watch expressions you have added and breakpoints you have set. In the following image, the highlight on the number 18 shows that the line has a breakpoint set. Set breakpoints where you want to pause execution. Click on a file to select it and view its contents in the center pane of the Debugger. Select the file you want to work with from this list. The first pane on the left contains the list of files associated with the page you are debugging. There are three panes in the JavaScript Debugger on Firefox. Fonts: In Firefox, the Fonts tab shows the fonts applied to the current element.
Grid: If the page you are inspecting uses CSS Grid, this section allows you to view the grid details.Box Model: represents visually the current element's box model, so you can see at a glance what padding, border and margin is applied to it, and how big its content is.Layout: In Firefox, this area includes two sections:.Computed: This shows the computed styles for the currently selected element (the final, normalized values that the browser applies).You'll notice a number of clickable tabs at the top of the CSS Viewer: You can also click the closing curly brace of any rule to bring up a text box on a new line, where you can write a completely new declaration for your page.Clicking that rule causes the dev tools to jump to show it in its own view, where it can generally be edited and saved. Next to each rule is the file name and line number the rule is defined in.Click a property name or value to bring up a text box, where you can key in a new value to get a live preview of a style change.