Peter
Peter

Reputation: 11920

MSVC Autoexp.dat tokens explanation

In Visual Studio 2010, there is a little bit of explanation at the beginning of autoexp.dat on how to define rules. However, this explanation is quite limited and I haven't come across any other document. Appreciate your help in understanding a few tokens.

Here is a rule I copied from somewhere. It works for my needs.

MyString{
    preview         ([$e.data,su])
    stringview      ([$e.data,sub])
}

Q1. What is the difference between preview and stringview? Do I really need stringview.

Q2. Why does stringview use "sub" and not "su?"

Q3. What does a hash (#) do on an expression? What is the difference between the following two lines?

   preview         ([$e.data,su])
   preview         #([$e.data,su])

Upvotes: 1

Views: 102

Answers (1)

Kerogi
Kerogi

Reputation: 31

  1. preview is that you see in Debuger's watch window, if you define stringview it will add a small icon (looking glass) witch calls a Text Visuzlisers. (read StringView)
  2. Format Specifiers in C++
  3. I think this is some syntax requirements like tokens #tree #list etc

Upvotes: 1

Related Questions