

Note you can also select files and add breakpoints in source maps which may be easier.Ī breakpoint specifies a point where the debugger will pause processing so you can inspect the state of the program and progress to the following line.

You can open a JavaScript file from the Sources panel and click any line number to set a breakpoint (denoted by a blue marker).
#GOOGLE CHROME SCRIPT DEBUGGER CODE#
However, you can prettify minified code in the generated files by clicking the ) Debugging Client-Side Apps If your code defines source maps, you can open the “files” (see the src folder above) but changes will not apply to the active page. The yellow warning icon indicates that changes are not permanent. Press Ctrl | Cmd + S to save a file but be aware that it’s saved to memory. The Sources panel allows you to edit any CSS or JavaScript file by locating it in the Page pane. When viewing a page either on a local development or live site, the Elements panel allows you to inspect, disable, enable, add, edit, or remove any CSS selectors and properties:

Safari and Firefox have different sets of features, and they may not offer the same editing functions, but they also have their own tricks to aid development for example, Firefox indicates which DOM elements have event handlers attached. Depending on your browser and OS, you can open DevTools from the menu: press F12, or Ctrl| Cmd + Shift + i. Chromium, Edge, Opera, Vivaldi, and Brave use the same engine and have the same tools.
#GOOGLE CHROME SCRIPT DEBUGGER HOW TO#
The following sections describe how to use Chrome’s editing and debugging facilities. You’re unlikely to abandon VS Code or Sublime Text, but using a browser may be an option if you’re on someone else’s PC or need to edit a line or two. There’s a daunting range of complex-looking features, but it’s reached a point where you could use Chrome as your complete development environment. Few developers delve too deeply into browser “DevTools”.
