Debugging Tools for Windows

Caching Acquired Symbol Files

Typically, SymProxy caches the files that it acquires in the directory designated within Internet Information Services (IIS) as the virtual root for the associated Web site. Then IIS makes the file available to the client debugger. Because the debugger cannot open a file directly from HTTP, it copies the file to a local cache, specified by the symbol path:

srv*c:\localcache*http://server/symbols

In this example, the client debugger copies the file to c:\localcache. In a situation such as this, the file is copied twice – once by SymProxy to the virtual root of the Web site, and again by the debugger to its local cache.

It is possible to avoid the second copy operation and speed up processing. To do this, you must first share the virtual root of the Web site as a UNC path that can be accessed by the debuggers. For sake of example, this path is named \\server\symbols. You must then remove the IIS configuration for MIME types:

To remove the IIS configuration for MIME types
  1. 1.From Administrative Tools open Internet Information Services (IIS) Manager.
  2. 2.Expand Web Sites.
  3. 3.Right-click Default Web Site.
  4. 4.Right-click the Symbols virtual directory and select Properties.
  5. 5.Click the HTTP Headers tab.
  6. 6.Click MIME Types .
  7. 7.Select all types in the list box labelled Registered MIME Types.
  8. 8.Click Remove .
  9. 9.To exit the MIME Types dialog, click OK.
  10. 10.To exit Symbols Properties, click OK.

This causes IIS to return file not found to the debugging client for all transactions on the Web site. However, it does not prevent SymProxy from populating the virtual root with the file.

After you remove the IIS configuration for MIME types, configure the debugger clients to look for symbols first in the HTTP store and in the share that maps to the virtual root of the store with the command:

srv**http://server/symbols;srv*\\server\symbols

In the preceding example, the first element of the symbol path (srv**http://server/symbols) says to get files from the HTTP store and copy them to the default symbol store as a local cache. The specified cache is of no importance because no file is ever received from the HTTP store. After this failure, it attempts to obtain the file from the actual location of the virtual root of the store (srv*\\server\symbols). This attempt succeeds because the file is copied to that location as a side effect of the previous path processing.

Build machine: CAPEBUILD