FireBug Console - command line

2010-06-29  来源:本站原创  分类:Web  人气:208 

Official Documents

- Command line with the tab auto-complete feature

All special function command line see the table below:
Command Description

$(id)   Back by id  Element.

$$(selector)   Back through the CSS selector  Element  Array  .

$x(xpath)   Xpath expression returns through  Element  Array  .

dir(object)   List all the properties the object, and in  DOM  Tab page view is the same as the object  .

dirxml(node)   List nodes HTML or  XML  Source tree, and in  HTML  Nodes in the same tab page view change  .

cd(window)   By default, the command line is related to the top  window  Object, use this command to switch to  frame  Exclusive in the window  .

clear()   Clear information display area, and click the button  Clear  The same function  .

inspect(object[, tabName])  Monitor an object. TabName that the object in the monitor tab  ,  Optional value "html". "Css". "Script" and  "dom".

keys(object)   Return the property name from the object array  .

values(object)   Returns the property value from the object array  .

debug(fn)   The first line in the function to add a breakpoint  .

undebug(fn)   Remove the first line of the breakpoint in the function  .

monitor(fn)   Call tracking function fn  .

unmonitor(fn)   Do not follow the function call fn  .

monitorEvents(object[, types])   Tracking object event. Types of optional value  "composition". "contextmenu". "drag". "focus",."form"."key". "load"."mouse"."mutation"."paint"."scroll"."text"."ui"  And "xul".

unmonitorEvents(object[, types])   The event does not track the object. Types of optional value  "composition". "contextmenu". "drag". "focus",."form"."key". "load"."mouse"."mutation"."paint"."scroll"."text"."ui"  And "xul".

profile([title])   Performance test scripts began, optional parameters  title  As the title of the test results  .

profileEnd()   End of the performance test scripts  .

Write directly on the console the following code:

var date = '  Saturday  ', index = '6';

var yesterday = '  Friday ', tomorrow =' Sunday  ';

console.log("  Today is  %s,  Is the first week  %d  Days  ",date,index);

console.log("%s   Two days before and after  ",date,yesterday,tomorrow);
console.log('  This is the log message  ');

console.debug('  This is a debug message  ');

console.error('   This is the error message  ');

console.info('  This is the information message  ');

console.warn('  This is a warning message   ');

Console.log:   Simple log  .

Console.debug:   Log debug information, and attach a hyperlink to the line number  .

Console.error:   Displayed before the error icon in the message, and attach a hyperlink to the line number  .

Console.info:   Icon before the display information in the message, and attach a hyperlink to the line number  .

Console.warn:   Displays a warning icon before the message, and attach a hyperlink to the line number  .
相关文章
  • FireBug Console - command line 2010-06-29

    Official Documents - Command line with the tab auto-complete feature All special function command line see the table below: Command Description $(id) Back by id Element. $$(selector) Back through the CSS selector Element Array . $x(xpath) Xpath expre

  • Firebug console command to use 2010-09-01

    Little attention before the efficiency of the front page, now sometimes also need to consider the specific function of execution time when the Firebug console command that played a strong role. Other plug-ins can also achieve the desired effect, such

  • firebug Guide (2) --- firebug command line API Xiangjie (change) 2010-05-06

    Introduction: Firebug command line is one of the most useful features. If you ever had to use Visual Studio (referred to as VS) experience in development projects, they should know that you're using VS to debug the program when the "immediate window

  • Firebug Guide (four) --- how to use the Firebug command line API to provide debugging js procedures (below) 2009-03-18

    Introduction: Firebug command line are in one of the most useful features. If you have been using Visual Studio (referred to as VS) the experience of development projects, they should know you in the use of VS debugging procedures, "the immediate win

  • Firebug Guide (b) --- how to use the Firebug command line API to provide debugging js procedures (on) 2009-03-18

    Console Tab Overview This tag is mainly used to print the log only. It can also be a time when debugging in javascript as a command-line window to use (similar to Microsoft Visual Studio in the window immediately (immediate window)). And the use of i

  • [Reprinted] FireBug console management 2010-03-31

    In the Firebug debugging tool is simple to use, such as can be: You first run your program FireFox is open the page you want to test, if wrong, you can directly in the console window, as shown in the error file out of office click on the link, so you

  • Imitation firebug console output, compatible with IE 2008-10-12

    I can not do without firefox, mostly can not do without firebug, using firebug to debug css, js is too convenient. I believe that many people and, like me, in firefox often used under the console.log () outputs a number of objects or variable values,

  • Transfer must have the eight [cmd command line] 2010-03-11

    Transfer must have the cmd command line eight [] Articles Category: Operating system Must have the cmd command line eight [] 1, ping It is used to check whether the network or Internet connection speed smooth order. As a living network administrator

  • Must have the eight [cmd command line] 2010-06-01

    1, ping It is used to check whether the network or Internet connection speed smooth order. As a life on the network administrator or hacker is, ping command is the first to grasp the DOS command, it used the principle is this: has the only machine on

  • How to use command line parameters in Eclipse 2010-06-23

    How To Use Command Line Arguments in Eclipse How to use command line parameters in Eclipse Click map operation Click on Run -> Run (not Run Last Launched). In the window shown below, notice that the Welcome Java application is highlighted. In the lar

  • [Change] 6 Linux command line tool performance monitoring 2010-07-06

    6 Linux command line tool performance monitoring 1. Htop - http://htop.sourceforge.net/ Allows users to interact with a process viewer. As a text mode application, mainly used for console or X terminal. Currently has under way to see the process tree

  • MySQL at the command line import and export. Sql of documents 2010-07-17

    mysql> source c: / pursey.sql; Query OK, 0 rows affected, 1 warning (0.15 sec) Query OK, 0 rows affected, 1 warning (0.00 sec) Query OK, 0 rows affected, 1 warning (0.00 sec) Query OK, 0 rows affected, 1 warning (0.00 sec) Query OK, 0 rows affected (

  • python in pydev, IDLE, the command line garbled reasons and solutions 2010-09-07

    #! / Usr / bin / env python # -*- Coding: utf-8 -*- # @ Author [email protected] # @ Version 2010-09-07 11:22 # The original string rstr = r "encoding" # Ordinary string str = "encoding" # Unicode strings ustr = u "encoding"

  • Android SDK command line tools commonly used in 2010-09-16

    1. Startup and shutdown ADB Services (adb start-server and adb kill-server) Tested by the author, after a period of time to run the simulator, adb of the possible (in the Windows process can be found in the service, the service is used for the simula

  • Development of Linux command line utility 2010-09-21

    http://www.ibm.com/developerworks/cn/linux/shell/clutil/ This article will guide you to learn how to write even to the end user, simple enough Linux command line utility. This paper outlines best practices and reliable command-line start, and a detai

  • [Links] TOMCAT5 under the WINDOWS system services related to the command line 2010-09-30

    Tomcat5.exe Tomcat can join the service; Tomcat5w.exe can assist configuration has been added services. Tomcat5w.exe monitoring program Tomcat5w is a monitoring and configuring Tomcat services, graphical interface applications. Available command line

  • Advanced Course on the command line selection of CMD, eds (rpm) 2010-11-06

    Chapter I Section I often batch based on the internal command batch Introduction 1, REM, and:: 2, ECHO, and @ 3, PAUSE 4, ERRORLEVEL 5, TITLE 6, COLOR 7, mode configuration system equipment 8, GOTO and: 9, FIND 10, START 11, assoc and ftype 12, pushd

  • start the mysql command line windows 2010-11-16

    To start the mysqld server from the command line, you should start a console window (or "DOS window") and enter the command: C:\> C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld MySQL install the system in different positions, using the pr

  • Java command line summary 2010-11-21

    Reference: javac command java command Javac command: Used to compile the source file into a binary bytecode file. *. Java file that is compiled into *. class, *. java and *. class name is one to one correspondence, that is, the file is compiled Test.

  • mysqld (server) command line option 2010-12-09

    · - Help, -? Show short help message and exit. Use - verbose and - help options all look. · - Allow-suspicious-udfs This option controls whether user-defined function xxx is only one character, as could be included in the main function. By default, t