Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

AutoExpForVC8

In Progress autoexp.dat file for Visual Studio 2005

This will make your life easier while debugging. For a rough guide to the file's syntax, see Writing custom visualizers for Visual Studio 2005.

Add the block below to the bottom of the autoexp.dat file, which is located in C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\Debugger or equivalent. The file responds to changes when the program being debugged is restarted. There is no need to restart Visual Studio itself.

There is also an article on adding expressions to the debugger using the Expression Evaluator Add-In. We're not doing any of that yet, but we could.

See Debugging Mozilla on Windows FAQ for more tips.

;; String Display
nsAutoString=<mData,su>
nsString=<mData,su>
nsCString=<mData,s>
nsCAutoString=<mData,s>
nsRect=x=<x,d> y=<y,d> width=<width,d>; height=<height,d>
nsStaticAtomWrapper=<mStaticAtom->mString,s>
nsIAtom=<mString,su>

;; Spidermonkey internals
JSObject {
  preview (
    #if (&$c != 0) (
      #(
        "JSObject [", [(*($c.slots - 1)),d], " slots]"
       )
    ) #else (
      "null"
    )
  )
  children (
    #(
	[raw members]: [$c,!],
	#array (
          expr: $c.slots[$i],
          size: [(*($c.slots - 1)),d]
        )
     )
  )
}

JSScript {
  preview (
    #(
        "JSScript ", [$c.filename, s]
     ) 
  )
  children (
    #(
	[raw members]: [$c,!],
	text: [$c.code, s]
     )
  )
}

JSAtom {
  preview (
   #(
     "A JSAtom with a key type of ", [( ((long)($c.entry.key)) & 0x7),d]
    ) 
  )
}

Document Tags and Contributors

 Contributors to this page: teoli, ethertank, KindDragon, Nickolay, Sayrer
 Last updated by: ethertank,