Gecko:Debugging Tools: Difference between revisions

No edit summary
Line 79: Line 79:
== Printing nsIAtoms ==
== Printing nsIAtoms ==


<bz> To print an nsIAtom, you see what concrete type it is using "set print object on", then cast it to that type, etc
def pa
 
  set $atom = $arg0
<bz> if it's an nsStaticAtom:
  if (sizeof(*((&*$atom)->mString)) == 2)
 
    pu (&*$atom)->mString
  def satom
  end
    p *((class nsStaticAtomWrapper*)$arg0)->mStaticAtom
end
  end
 
<bz> to be used as: ''satom content->Tag()'' or ''satom frame->GetType()''
 
<bz> for nsGkAtoms it'll work great


== Reflow Logs ==
== Reflow Logs ==


See [[http://www.mozilla.org/newlayout/doc/frame_reflow_debug.html Debugging Frame Reflow]]
See [[http://www.mozilla.org/newlayout/doc/frame_reflow_debug.html Debugging Frame Reflow]]
Confirmed users
657

edits