Chrome Console Console UsageLet's take a look at what the console has to offer for debugging purposes. The current console methods and properties are: ["$$", "$x", "dir", "Dirxml", "Keys", "values", "Profile", "Profileend", "monitorevents", "unmonitorevents", "inspect", " C
();};console.log(new Date().getTime()-start);
I believe you can see that the built-inconsole.timeHow convenient it is, saving the workload of writing code by yourself. It is also worth mentioning that by calling the built-inconsole.timeThe result is more accurate and reliable than the time difference calculated manually.Console. Profile console. timelime
You can useconsole.profileCooperationconsole.profileEndTo fulfill this requirement.This function
();};console.log(new Date().getTime()-start);
I believe you can see that the built-inconsole.timeHow convenient it is, saving the workload of writing code by yourself. It is also worth mentioning that by calling the built-inconsole.timeThe result is more accurate and reliable than the time difference calculated manually.Console. Profile console. timelime
You can useconsole.profileCooperationconsole.profileEndTo fulfill this requirement.This function
Essential Chrome extensions for developers, developer chrome
Firebug: do not introduce it more.Https://chrome.google.com/webstore/detail/bmagokdooijbeehmkpknfglimnifench
ChromeSnifferPlus: Chrome detector, which can be used to detect open-source software or js Class LibrariesHttps://chrome.google.com/webstore/detail/
){alert(‘hello,‘+name);}monitor(sayHello);sayHello(‘wayou‘);unmonitor(sayHello);sayHello(‘wayou‘);Debug UndebugDebug also receives a function name as a parameter. When the function is executed, it automatically breaks down for debugging, similar to a breakpoint at the entrance of the function, can be done by debugger, and can be manually interrupted by finding the appropriate source code in the Chrome developer
Transferred from: Http://www.cnblogs.com/Wayou/p/chrome-console-tips-and-tricks.html#homeChrome's developer tools are strong enough to have no friends, especially with its rich interface-friendly console, which can be used with the following benefits:
Higher "force lattice" faster development and debugging "st
console.profileEnd to accomplish this requirement.This feature can be done via the UI interface, which has a tab in the Chrome developer tool Profile .Similar to this, the function console.timeLine is to console.timeLineEnd start recording a timeline, as well as using the tags in the Chrome developer tool Timeline .So
The console provides two main methods for developers to test web pages and applications:
Diagnose log information by using console APIs provided by the console, such as console. Log () and console. Profile ().
The instant response command window can be jointly tuned with doc
Document directory
How to open Chrome's developer tools?
Elements Tab
Resources Tab
Network Tab
Scripts Tab
Timeline Tab
Profiles Tab
Audits Tab
Console Tab
[Original address: http://www.cnblogs.com/QLeelulu/archive/2011/08/28/2156402.html]
Before Google Chrome came out, I used FireFox all the time, because FireFox has rich plug-ins, and FireFox has
rendered, is a great addition to developers, especially for front-end developers who like to research cutting-edge technologies, is very important.For this article, as a web developer, in addition to the above reasons, our development is related to Chrome's developer tools. In this article, I want to elaborate on the chrome
developers who like to research cutting-edge technologies, is very important.For this article, as a web developer, in addition to the above reasons, our development is related to Chrome's developer tools. In this article, I want to elaborate on the chrome developer tool, and say why I think it is better than Firebug.H
function definition: Ctrl + Shift + 0 (under scripts panel)
Find the file: Ctrl + O (under the scripts panel)
More Shortcut Keys: Press? In Chrome developer Tool? View help
8. Command Line API
$ (Id_selector) is irrelevant to jquery on the page.
$ (Css_selector)
$0, $1, $2, $3, $4
The last five elements selected in the elements panel are $0.
These five variables are
devtool to replace existing tools such as Nodemon.--watchThis command will be launched in the console of the Chrome Developer tool, and the app.js --watch files we saved will be re-loaded (automatically) to the console via the parameters.By clicking app.js:1 on the link, the program will take Sources us to the relevan
page display effect;
Network: You can see which resources the page has requested from the server, the size of the resources, and the time it takes to load the resources, and of course see which resources are not loaded successfully. In addition, you can also view the HTTP request header, return content, etc.;
Sources: Mainly used for debugging JS;
Timeline: Provides a complete analysis of the time spent loading the page, all events, from downloading resources to processing JavaScrip
This article is based on the current Chrome stable version (19.0.1084.52 m), because Google is also constantly refining the chrome developer tool, so the chrome version may differ slightly. Some of the shortcut keys are also on Windows, and the Mac should be similar.Regular breakpoints related to breakpoint/conditional
Your website is running properly. Now let's make it run faster. The website performance is determined by the page loading speed and code execution efficiency. Some services can make your website load faster, such as compression and CDN, but make code execution faster.
Minor changes in the Code may have a huge impact on performance. The quick and flexible website and the terrible "no response script" dialog box may have only a few lines of code. This article shows you how to use
Front-end programmers or college students are developing Web pages, what if they want to test or optimize the structure of the Web page by testing? This requires a tool, Chrome browser developer tools? This article is not familiar with the developer tool of the students or peers, talk about, first read the articleHow do I open the
the link in anonymous mode, and now Chrome can still keep the same developer tool status when you open it anonymously, such as the same toolbar location, size, panel layout, setup information, and so on.Consoleuse a function in the panel getEventListeners(node) to get the current node-bound event, returning an arrayIn the Elements panel, right click on the inline JS or CSS path, select open can open the So
Note: This article is the fourth article on chrome Developer Tools translation.
See https://developers.google.com/chrome-developer-tools/docs/resources for more informationChrome Developer Tools: Resources panelchrome Developer To
More and more front-end developers like to develop debug code in Chrome, and Chrome has a number of great plugins that can help front-end developers work much more efficiently. In particular, chrome itself can be logged in, after login all your plugins will automatically sync to every login chrome, very convenient AH.P
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.