欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

Firebug使用之三--ScriptPanel

Script Panel

Firebug使用之三--Script Panel
Firebug使用之三--Script Panel
Script Panel

The main purpose of the script panel is to debug JavaScript code. Therefore the script panel integrates a powerful debugging tool based on features like different kinds of breakpoints, step-by-step execution of scripts, a display for the variable stack, watch expressions and more.

江都ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場(chǎng)景,ssl證書(shū)未來(lái)市場(chǎng)廣闊!成為成都創(chuàng)新互聯(lián)公司的ssl證書(shū)銷售渠道,可以享受市場(chǎng)價(jià)格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:13518219792(備注:SSL證書(shū)合作)期待與您的合作!

Contents

 [hide]
  • 1 Options Menu
  • 2 Panel Toolbar
    • 2.1 Break On Next
    • 2.2 Script Type Menu
    • 2.3 Script Location Menu
    • 2.4 Execution Control Buttons
  • 3 Breakpoints
    • 3.1 Setting breakpoints
    • 3.2 Types
    • 3.3 Conditions
    • 3.4 Automatic Breakpoints
  • 4 Variable Tooltips
  • 5 Side Panels
    • 5.1 Watch
    • 5.2 Stack
    • 5.3 Breakpoints
  • 6 Search
  • 7 See also

[edit]Options Menu

This menu is reachable via the little arrow in the panel tab ( Firebug使用之三--Script Panel ) or by right-clicking on on the panel tab (since Firebug 1.9).

Option Preference Description
Enabled/Disabled extensions.firebug.script.enableSites Enables the Script Panel
Show chrome sources extensions.firebug.service.showAllSourceFiles Toggles the display of program and add-on internal sources.

Note that Firebug will still not activate for chrome URLs unless you also set service.filterSystemURLs to false (seeFirebug Preferences).

Track Throw/Catch extensions.firebug.service.trackThrowCatch Toggles tracking of throw/catch blocks
Show Break Notifications extensions.firebug.showBreakNotification Toggles the display of break notifications

For more info about tweaks available in Firebug please see the full list of preferences.

[edit]Panel Toolbar

[edit]Break On Next

The Break On Next button ( Firebug使用之三--Script Panel ) gives you the possiblity to stop the script at the next executed command. This can be a user action, a timeout or anything else that causes script execution. As soon as you click on the button, it is armed. When any script execution occurs now, the debugger will halt the script and you can step through it.

There are several other Break On ... features available at the other panels.

[edit]Script Type Menu

The Script Type Menu filters the Script Location Menu by different types of scripts. Thereby three different kinds of scripts are distinguished:

Type Description
static All scripts, that are loaded together with the page (via the <script> tag)
eval() Scripts, that are executed using the eval() function (typically scripts loaded via an XMLHttpRequest)
event Scripts, that are generated through an event (like e. g. client side table sorting)

You have the option to just show static scripts, static + eval scripts, static + event script or all types of scripts.

[edit]Script Location Menu

All scripts filtered by the type(s) selected in the Script Type Menu will be shown inside this menu. Any characters you type on the keyboard while the list of files is open will filter the list to make it easier to find files. By selecting one of the scripts it will be shown inside the Main Panel.

If you right-click on the file list, you'll get options for opening the script in a separate browser tab, copying its location to the clipboard, or opening it inside the DOM Panel.

[edit]Execution Control Buttons

The execution buttons are enabled as soon as the debugger is stopped. There are four buttons, which can be used for debugging:

Type Button Shortcut Description
Rerun
Firebug使用之三--Script Panel
Shift + F8 Reruns the current call stack (see Honza's blog post for more info)
Continue
Firebug使用之三--Script Panel
F8 Continues script execution until the next breakpoint or the execution ends
Step Into
Firebug使用之三--Script Panel
F11 Jumps into the body of executed functions, so you can debug them
Step over
Firebug使用之三--Script Panel
F10 Executes functions, but doesn't jump into them, instead moves to the next line of the same scope
Step out
Firebug使用之三--Script Panel
Shift + F11 Executes the rest of the current function and jumps back to it's caller

test

[edit]Breakpoints

Breakpoints in Firebug are used to debug JavaScript code. They will stop script execution at a specific point and give you control over script execution.

[edit]Setting breakpoints

The Breakpoint Column allows you to set breakpoints. By clicking on it a breakpoint is set for the line. Clicking it again removes the breakpoint again.

[edit]Types

You can set breakpoints to stop script execution as soon as it reaches them for debugging purposes. Currently you can manually create five different types of breakpoints:

Type Panel Description
Script Breakpoints Script Panel Standard type of breakpoints
Error Breakpoints Console Panel Trigger on a specific JavaScript error
HTML Breakpoints HTML Panel Trigger on HTML manipulation
DOM Breakpoints DOM Panel Trigger on DOM property manipulation
XHR Breakpoints Net Panel Trigger on XMLHttpRequests
Cookie Breakpoints Cookies Panel Trigger on cookie manipulation

[edit]Conditions

For manually set breakpoints you also have the possibility to set conditions, at which they trigger. Doing so opens the Breakpoint Condition Editor:

Firebug使用之三--Script Panel

These conditions can be very complex, but most of the time you'll want to limit breaking to specific variable values. An example for this could be having a counter and you want to stop execution when the counter reaches a specific value. Another situation would be to stop execution when a specific variable is defined resp. undefined.

[edit]Automatic Breakpoints

Furthermore the script execution can be stopped via the different implemented Break On ... features of each panel, which doesn't require explicitly setting of breakpoints.

[edit]Variable Tooltips

When the debugger halted the script, you are able to get information about the script variables by hovering them. A popup will appear showing the current value of the hovered variable.

[edit]Side Panels

The Side Panels of the Script Panel offer different useful information and functionality about the executed scripts.

[edit]Watch

The Watch Side Panel offers the possibility to enter watch expressions allowing to follow changes of variable values while debugging.

[edit]Stack

The Stack Side Panel contains information about the call stack trace for the currently debugged function.

[edit]Breakpoints

The Breakpoints Side Panel lists the defined breakpoints and gives the possibility to toggle their activation plus additional options for changing the behavior of the breakpoints.

[edit]Search

The text input box in the upper right corner searches the source code. When you click in to the box, an auxiliary panel allows you to pick search direction, single or multiple files, and case sensitivity. The text has special case code to support:

  • Go to Line: The symbol # followed by a number will incrementally move the line number,
  • Case by Case: If the case sensitivity setting is not used, then an all lower case word will mean case-insensitive search, but a mixedCase word will cause case sensitive matches.

[edit]See also

  • Script Debugging
  • Jsd (JavaScript interface for debugging Javascript)

網(wǎng)頁(yè)標(biāo)題:Firebug使用之三--ScriptPanel
文章出自:http://aaarwkj.com/article44/jegche.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供GoogleChatGPT、網(wǎng)站策劃、搜索引擎優(yōu)化、、做網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

成都做網(wǎng)站
亚洲精品一区久久狠狠欧美| 婷婷丁香六月激情综合| 亚洲天堂中文字幕麻豆| 麻豆国产传媒片在线看| 亚洲国产精品综合久久网络| 国产一级黄色录像大片| 91九色国产在线视频| 国产亚洲精品国产福利久久| 国产亚洲精品久在线| 91久久国产综合久久91| 国产精品一级片免费看| 中文字幕av一区二区人妻| 日韩精品熟妻人女亚洲一区| 99精品国产麻豆一区二区三区| 黄色午夜福利在线观看| 日韩欧美一区二区三区| 午夜视频在线观看麻豆| 国内不卡一区二区三区| 蜜臀av在线精品国自产拍| 国产又黄又爽不卡的视频| av在线日韩国产精品| 青草草草草草在线观看| 日韩传媒在线观看视频| 国语对白精品视频在线| 国模在线视频一区二区| 免费无码不卡av一区二区| 一本色桃子精品久久中文字幕| 欧美黑人在线一区二区| 中文字幕乱码av一区二区 | 男人天堂插插综合搜索| 国产中文字幕精品在线| 日本人妻成人免费大片| 久久久久久精品妇女| 国产青青草成人在线视频| 小仙女精品经典三级永久| 熟女俱乐部五十路六十路 | 欧美日韩精品激情一区二区| 中文字幕人妻熟女人妻| 亚洲视频欧美视频自拍偷拍| 理论三级麻豆国产在线| 人妻少妇被粗大爽av|