Firebug 1.7: Firebug Service

From FirebugWiki

(Difference between revisions)
Jump to: navigation, search
m (Fixed link to JSDocs)
m (Added categories)
 
Line 41: Line 41:
* All logic associated with the Firebug.Debugger object (onBreak, stop, enterNestedEventLoop and exitNestedEventLoop should be part of Firebug Service (FBS)
* All logic associated with the Firebug.Debugger object (onBreak, stop, enterNestedEventLoop and exitNestedEventLoop should be part of Firebug Service (FBS)
 +
 +
[[Category:Firebug]]
 +
[[Category:Firebug Development]]
 +
[[Category:Extensions]]

Latest revision as of 00:44, 22 November 2013

Some notes about firebug-service module analysis in Firebug 1.7

Contents

[edit] Resources

[edit] Objects

List of helper objects used by Firebug debugger.

  • fbs: a self reference, to avoid 'this' since fbs is one per application.
  • jsdHandlers: global holding all of the current created jsd hooks
  • FirebugPrefsObserver
  • BreakOnNextCall(debuggr, context)

[edit] Stepper Objects

Every time a user steps one or more of these are created.

  • LineStepper(debuggr, context)
  • OutStepper(debuggr, context)
  • IntoStepper(debuggr, context)

[edit] Interfaces

List of JSD interfaces utilized by Firebug debugger.

[edit] Stepping

Stepping in the debugger (over, into, out) is implemented using steppers. These objects behave the same way as the Controller in famous MVC pattern.


[edit] Step Over: Line Stepper

Following diagram depicts how step over logic is implemented and how Line Stepper object is involved.

Step-over.png

  • All logic associated with the Firebug.Debugger object (onBreak, stop, enterNestedEventLoop and exitNestedEventLoop should be part of Firebug Service (FBS)
Personal tools