.lldbinit
author Cameron McCormack <cam@mcc.id.au>
Wed, 15 Jan 2014 11:29:36 +1100
changeset 163411 bb7af8904cac445e8d044d2e5b49748c64ec24a9
parent 163161 481e4766030eefc867a29701d37007c3796e696b
child 163661 89cb8d7a3719f52df7fe3b13cbfcbb7e6fe43955
permissions -rw-r--r--
Bug 959445 - Add lldb summaries for nsIAtoms, nsTextNodes and nsTextFragments showing their text content. r=ehsan

# .lldbinit file for debugging Mozilla

# Mozilla's use of UNIFIED_SOURCES to include multiple source files into a
# single compiled file breaks lldb breakpoint setting. This works around that.
# See http://lldb.llvm.org/troubleshooting.html for more info.
settings set target.inline-breakpoint-strategy always

# Show the dynamic type of an object when using "expr".  This, for example,
# will show a variable declared as "nsIFrame *" that points to an nsBlockFrame
# object as being of type "nsBlockFrame *" rather than "nsIFrame *".
settings set target.prefer-dynamic-value run-target

# Import the module that defines complex Gecko debugging commands.  Rather
# than do any kind of searching, this assumes that you are running lldb from
# the top level source directory.
script sys.path.append('python/lldbutils'); import lldbutils; lldbutils.init()

# Show the string value in atoms.
type summary add nsIAtom --summary-string "${var.mString}"

# Show the value of text nodes.
type summary add nsTextNode --summary-string "${var.mText}"