diff --git a/docs/authoring-development-workflow.html b/docs/authoring-development-workflow.html index 10fcf98..0cb143b 100644 --- a/docs/authoring-development-workflow.html +++ b/docs/authoring-development-workflow.html @@ -33,7 +33,7 @@ Chrome) to test resizing layouts
Navigate to a URL you wish to debug then toggle between dock-to-right and dock-to-window by clicking and long-holding on the -layout icon at the bottom left-hand corner of the DevTools.
+layout icon at the bottom left-hand corner of the DevTools. @@ -333,7 +333,7 @@ complete this process. This will relaunch the browser. -When you now click the Settings cog +
When you now click the Settings cog , a new 'Experiments' tab will be available, where you can easily enable or disable experimental features.
diff --git a/docs/clean-testing-environment.html b/docs/clean-testing-environment.html index d04d90c..605ddca 100644 --- a/docs/clean-testing-environment.html +++ b/docs/clean-testing-environment.html @@ -1,13 +1,13 @@ {{+bindTo:partials.standard_devtools_article}}A clean testing environment allows you to to easily determine the point of -failure for your site or web application, rather than wondering if it was + +
A clean testing environment allows you to to easily determine the point of +failure for your site or web application, rather than wondering if it was something in the background that caused your slow-down or failure.
-Apps, extensions, background processes and unnecessary tabs are only some of the -things that can impact your profiling figures and should be avoided where -possible. This is of particular relevance when you wish to accurately profile +
Apps, extensions, background processes and unnecessary tabs are only some of the
+things that can impact your profiling figures and should be avoided where
+possible. This is of particular relevance when you wish to accurately profile
using the Timeline, Profiles or about:tracing
.
Option 1: Use Incognito mode. Open the Chrome menu and select New Incognito Window, or launch +
Option 1: Use Incognito mode. Open the Chrome menu and select New Incognito Window, or launch
Chrome with the --incognito
switch.
Option 2: Use a fresh Chrome profile. Click the user icon in the top-right corner +
Option 2: Use a fresh Chrome profile. Click the user icon in the top-right corner of your Chrome window and select New User.
-
To guarantee a clean profile that doesn't inherit
- any extensions or settings, launch Chrome using the --user-data-dir
+
To guarantee a clean profile that doesn't inherit
+ any extensions or settings, launch Chrome using the --user-data-dir
switch with the path '/dev/null'
. e.g:
open -a "Google Chrome" --args --user-data-dir=/dev/null
google-chrome --user-data-dir=/dev/null
"C:\Users\username\AppData\Local\Google\Chrome\Application\chrome.exe"
+ - Windows:
"C:\Users\username\AppData\Local\Google\Chrome\Application\chrome.exe"
--user-data-dir=/dev/null
This will ensure you get a completely empty profile instead of loading the user's profile as read-only.
inspect()
method in the console, such as inspect(document.body)
. See the Command-Line API for information on using inspect.If you find it excessive to view all event handlers, including those registered using event delegation, click Filter and select the menu item Selected Node Only which limits displayed event listeners to only those registered directly on the element.
+If you find it excessive to view all event handlers, including those registered using event delegation, click Filter and select the menu item Selected Node Only which limits displayed event listeners to only those registered directly on the element.
Note: Many Chrome extensions add their own event listeners onto the DOM.
@@ -1103,7 +1103,7 @@ video, audio, div, .message, body *, time {After you have selected a valid CSS property, bring up suggestions for applicable CSS values by moving focus to the CSS property value field. For example, the property display
suggests values such as block, flex, none,
and others.
Paste CSS into the Styles pane using Ctrl + V (or Cmd + V on Mac). Properties and their values are parsed and entered into the correct fields.
You may find it preferable to add styles along with a new selector. Click New Style Rule within the styles pane header bar to generate a new CSS rule.
+You may find it preferable to add styles along with a new selector. Click New Style Rule within the styles pane header bar to generate a new CSS rule.
To set an element's state:
Make a modification to a CSS rule which originates from an external style sheet and notice the change shows in the local modifications pane.
-Note: When you create a new rule using New Style Rule , the new rule doesn't belong to an existing stylesheet. DevTools adds it to a special inspector stylesheet. The inspector stylesheet can be edited in the Sources panel, like other files.
+Note: When you create a new rule using New Style Rule , the new rule doesn't belong to an existing stylesheet. DevTools adds it to a special inspector stylesheet. The inspector stylesheet can be edited in the Sources panel, like other files.
Explore the local modifications pane:
You can add a new style selector using the button found in the Styles +
You can add a new style selector using the button found in the Styles section bar. In order to emulate an element's pseudostate (:active, :hover, :focus, :visited), use the - in the Styles pane header. In will bring up a small pane where you can select + in the Styles pane header. In will bring up a small pane where you can select which pseudostates of the selected element should be activated.
diff --git a/docs/javascript-debugging.html b/docs/javascript-debugging.html index fbca529..629848a 100644 --- a/docs/javascript-debugging.html +++ b/docs/javascript-debugging.html @@ -35,7 +35,7 @@ pageThe execution control buttons are located at the top of the side panels and allow you to step through code. The buttons available are:
-Continue: continues code execution until we encounter another breakpoint.
-Step over: step through code line-by-line to get insights into how each line affects the variables being updated. Should your code call another function, the debugger won't jump into its code, instead stepping over so that the focus remains on the current function.
-Step into: like Step over, however clicking Step into at the function call will cause the debugger to move its execution to the first line in the functions definition.
-Step out: having stepped into a function, clicking this will cause the remainder of the function definition to be run and the debugger will move its execution to the parent function.
-Toggle breakpoints: toggles breakpoints on/off while leaving their enabled states intact.
+Continue: continues code execution until we encounter another breakpoint.
+Step over: step through code line-by-line to get insights into how each line affects the variables being updated. Should your code call another function, the debugger won't jump into its code, instead stepping over so that the focus remains on the current function.
+Step into: like Step over, however clicking Step into at the function call will cause the debugger to move its execution to the first line in the functions definition.
+Step out: having stepped into a function, clicking this will cause the remainder of the function definition to be run and the debugger will move its execution to the parent function.
+Toggle breakpoints: toggles breakpoints on/off while leaving their enabled states intact.
There are also several related keyboard shortcuts available in the Sources panel:
@@ -141,7 +141,7 @@ drop-downonMouseOver
functionraiseException
functionappendChild
function callmouseout
event handlerYou may also want to pause JavaScript execution next time exception is thrown and inspect its call stack, scope variables and state of your app. A tri-state -stop button ( ) at the bottom of the Scripts panel enables you to switch between different exception handling modes: you can choose to either pause on all exception or only on the uncaught ones or you can ignore exceptions altogether.
@@ -539,7 +539,7 @@ the DevTools: -And by clicking on the curly brace ("Pretty Print") icon in the bottom left +
And by clicking on the curly brace ("Pretty Print") icon in the bottom left corner, the JavaScript is transformed into a more human readable form. This is also more easy for debugging and setting breakpoints.
diff --git a/docs/javascript-debugging/image_14.png b/docs/javascript-debugging/image_14.png deleted file mode 100755 index 2e4e393..0000000 Binary files a/docs/javascript-debugging/image_14.png and /dev/null differ diff --git a/docs/javascript-debugging/image_17.png b/docs/javascript-debugging/image_17.png deleted file mode 100755 index 2e4e393..0000000 Binary files a/docs/javascript-debugging/image_17.png and /dev/null differ diff --git a/docs/javascript-debugging/image_19.png b/docs/javascript-debugging/image_19.png deleted file mode 100755 index 471b38a..0000000 Binary files a/docs/javascript-debugging/image_19.png and /dev/null differ diff --git a/docs/javascript-debugging/image_24.png b/docs/javascript-debugging/image_24.png deleted file mode 100755 index 9d51225..0000000 Binary files a/docs/javascript-debugging/image_24.png and /dev/null differ diff --git a/docs/javascript-debugging/image_25.png b/docs/javascript-debugging/image_25.png deleted file mode 100755 index 2e4e393..0000000 Binary files a/docs/javascript-debugging/image_25.png and /dev/null differ diff --git a/docs/javascript-debugging/image_28.png b/docs/javascript-debugging/image_28.png deleted file mode 100755 index 2e4e393..0000000 Binary files a/docs/javascript-debugging/image_28.png and /dev/null differ diff --git a/docs/javascript-debugging/image_34.png b/docs/javascript-debugging/image_34.png deleted file mode 100755 index 88978a9..0000000 Binary files a/docs/javascript-debugging/image_34.png and /dev/null differ diff --git a/docs/javascript-debugging/image_45.png b/docs/javascript-debugging/image_45.png deleted file mode 100644 index 8d1a9c2..0000000 Binary files a/docs/javascript-debugging/image_45.png and /dev/null differ diff --git a/docs/javascript-debugging/image_9.png b/docs/javascript-debugging/image_9.png deleted file mode 100755 index 2e4e393..0000000 Binary files a/docs/javascript-debugging/image_9.png and /dev/null differ diff --git a/docs/javascript-memory-profiling.md b/docs/javascript-memory-profiling.md index 7a5dffa..62dac73 100644 --- a/docs/javascript-memory-profiling.md +++ b/docs/javascript-memory-profiling.md @@ -204,7 +204,7 @@ When investigating memory issues, the Timeline panel’s **Memory view** can be The first thing to do is identify a sequence of actions you suspect is leaking memory. This could be anything from navigating around a site, hovering, clicking, or otherwise somehow interacting with page in a way that seems to negatively impact performance more over time. -On the Timeline panel start recording (Ctrl + E or Cmd + E) and perform the sequence of actions you want to test. To force a full garbage collection click the trash icon (![](memory-profiling-files/image_8.png)) at the bottom. +On the Timeline panel start recording (Ctrl + E or Cmd + E) and perform the sequence of actions you want to test. To force a full garbage collection click the trash icon (![](../../images/collect-garbage.png)) at the bottom. Below we see a memory leak pattern, where some nodes are not being collected: @@ -253,13 +253,13 @@ On the Profiles panel, choose ** *Take Heap Snapshot* **, then click **Start** o ### Clearing snapshots -Snapshots can be removed (both from DevTools and renderers memory) by pressing the Clear all profiles icon (![](memory-profiling-files/image_14.png)): +Snapshots can be removed (both from DevTools and renderers memory) by pressing the Clear all profiles icon (![](../../images/clear.png)): ![](memory-profiling-files/image_15.png)Note: Closing the DevTools window will not delete collected profiles from the renderers memory. When reopening DevTools, all previously taken snapshots will reappear in the list of snapshots.
-Remember that we mentioned earlier you can force GC from the DevTools as part of your snapshot workflow. When taking a Heap Snapshot, it is automatically forced. In Timeline it can be very convenient to force a GC by clicking on the trash can (Collect Garbage) button (). +Remember that we mentioned earlier you can force GC from the DevTools as part of your snapshot workflow. When taking a Heap Snapshot, it is automatically forced. In Timeline it can be very convenient to force a GC by clicking on the trash can (Collect Garbage) button (). diff --git a/docs/memory-profiling-files/image_14.png b/docs/memory-profiling-files/image_14.png deleted file mode 100644 index 44173de..0000000 Binary files a/docs/memory-profiling-files/image_14.png and /dev/null differ diff --git a/docs/mobile-emulation.html b/docs/mobile-emulation.html index e7577b8..2c752e3 100644 --- a/docs/mobile-emulation.html +++ b/docs/mobile-emulation.html @@ -66,7 +66,7 @@ make this process more straightforward.@media only screen and (min-device-width:768px)
) will be enabled according to the values defined in the Resolution settings.To modify the Settings in DevTools:
To access the DevTools, on any web page or app in Google Chrome you can use one of these options:
-
+
Emulate an element's pseudo state (:active
, :hover
, :focus
, :visited
)
- + Add new style selectors
@@ -424,15 +424,15 @@- + Don't pause on exceptions
- + Pause on All exceptions (including those caught within try/catch blocks)
- + Pause on uncaught exceptions (usually the one you want)
diff --git a/docs/timeline-images/recordbutton-off.png b/docs/timeline-images/recordbutton-off.png deleted file mode 100755 index 601fb42..0000000 Binary files a/docs/timeline-images/recordbutton-off.png and /dev/null differ diff --git a/docs/timeline-images/recordbutton-on.png b/docs/timeline-images/recordbutton-on.png deleted file mode 100755 index 665d115..0000000 Binary files a/docs/timeline-images/recordbutton-on.png and /dev/null differ diff --git a/docs/timeline.md b/docs/timeline.md index 743566f..be200e2 100644 --- a/docs/timeline.md +++ b/docs/timeline.md @@ -113,11 +113,11 @@ To make a recording, you start a recording session, interact with your applicatiThe Record button turns red during a recording.
+The Record button turns red during a recording.
Timeline won’t display any data by default but you can begin a recording session with it by opening your app and clicking on the circle at the bottom of the pane. Using the Ctrl + E or Cmd + E shortcut will also trigger a record.
+Timeline won’t display any data by default but you can begin a recording session with it by opening your app and clicking on the circle at the bottom of the pane. Using the Ctrl + E or Cmd + E shortcut will also trigger a record.
@@ -374,7 +374,7 @@ $x('//'img, frame);From the Sources pane, double clicking the pause script execution () button will break the code when an uncaught exception occurs, preserving the call stack and the current state of the application - some refer to this as the purple pause.
+From the Sources pane, double clicking the pause script execution () button will break the code when an uncaught exception occurs, preserving the call stack and the current state of the application - some refer to this as the purple pause.
@@ -406,7 +406,7 @@ $x('//'img, frame);Go to the Sources panel and selected your desired script from the scripts list.
Next, press the "Pretty print" button (marked with curly braces) from the bottom of the DevTools window.
Next, press the "Pretty print" button (marked with curly braces) from the bottom of the DevTools window.
Your code should now be prettified!
A pause button ( ) at the top of the Scripts panel enables you to switch between different exception handling modes. You likely don't want to pause on all exceptions, unless you're debugging code that's wrapped in try/catch.
+A pause button ( ) at the top of the Scripts panel enables you to switch between different exception handling modes. You likely don't want to pause on all exceptions , unless you're debugging code that's wrapped in try/catch.
@@ -600,13 +600,13 @@ Object("hello")Once you have finished adding a property, you can hit the tab key to set the next property.
-New selectors can be added by clicking the button to the right-hand side of the "Styles" sub-panel. This allows you to define a selector and similarly, add new properties and values as needed.
+New selectors can be added by clicking the button to the right-hand side of the "Styles" sub-panel. This allows you to define a selector and similarly, add new properties and values as needed.
Note: You can also edit any selector in the Styles pane by single-clicking on the name of a selector. Once the name has been changed, the existing properties for the selector will be applied to the element selection defined by the new selector.
-New pseudo-selectors can be added in a similar fashion, by appending them to the name of a selector. Also note that clicking on the "toggle element states" button, to the right of the new selector button will toggle the visibility of the "Force element state" pane.
+New pseudo-selectors can be added in a similar fashion, by appending them to the name of a selector. Also note that clicking on the "toggle element states" button, to the right of the new selector button will toggle the visibility of the "Force element state" pane.
@@ -901,7 +901,7 @@ mode. See hDock-to-right mode is also useful for previewing how your pages look when viewed on screens with smaller viewports. To use this:
Enable dock-to-right mode by long-holding on the layout switcher icon at the bottom of the DevTools window
Enable dock-to-right mode by long-holding on the layout switcher icon at the bottom of the DevTools window
You can now drag the window splitter right and left to change the width of the viewport and trigger your media query breakpoints.