Welcome to MSDN Blogs Sign in | Join | Help

Managed Debugger Expression Evaluator

   Hi, my name is James Wang and I am a software design engineer in the Visual C++ Front End team.  One of my testing areas is C++ debugger expression evaluators.  That is the engine that evaluate the expressions you put in the debugger watch windows.
Currently, the Visual Studio 2005 ships two versions of the debugger expression evaluator, one for the native debugger and one for the managed debugger.  While we are trying to make the managed debugger expression evaluator to be in parity with the native version, there are still some subtle differences due to different type systems and relative new code bases.  In the coming releases, we will try to improve the managed debugger expression evaluator and to improve the managed code debugging experience. Let us know any feedback in this area.

Some Tips:

In the Program Files\Microsoft Visual Studio 8\Common7\Packages\Debugger directory, there is a file called mcee_mc.dat file.  This file serves the same purpose as the autoexp.dat but for the managed debugger.  You can modify this file to control the appearance (or Visualization ) for complex types such as  BCL types, STL types or your own types in the watch window.  The syntax is basically the same as autoexp.dat.

James Wang
Visual C++ Compiler

Published Sunday, September 10, 2006 11:30 PM by vcblog

Comments

Wednesday, October 18, 2006 12:09 PM by Brad

# re: Managed Debugger Expression Evaluator

Question

I have an array of doubles declared like so:

double* points = new double[size];

When I try to cast the memory address of 'points' in the watch window of VS2005

((double*)'insert memory address here')[1]

to access the elements of the array, the evaluator errors with the following:

(double*)(0x08d8a0d8) error: '(double*)' cannot be performed on '148414680'

This same syntax worked in VS5,VS6,VS2003, but not VS2005.  I need access to the array members at runtime.  I have multiple macros that walk memory but now the managed EE errors when casting memory addresses.

Is there a  different syntax that will allow this to work.  The code base is C++ and is compiled with the following flags /clr:oldSyntax -wd 4562 -wd 4835 -wd 4996 -wd 4793 -wd 4748 /DVS2005 -DFORWARD_DECLARE_FIX.

Any comment would be appreciated.

Tuesday, December 19, 2006 10:43 AM by replica watches

# re: Managed Debugger Expression Evaluator

<a href="http://shrinkurl.us/watches">replica">http://shrinkurl.us/watches">replica watches</a>

http://shrinkurl.us/watches

replica watches

Wednesday, December 20, 2006 4:39 AM by replica watches

# re: Managed Debugger Expression Evaluator

<a href="http://urlin.it/1a56">replica">http://urlin.it/1a56">replica watches</a>

http://urlin.it/1a56

replica watches

Saturday, December 23, 2006 2:34 AM by None

# re: Managed Debugger Expression Evaluator

Hello, This site is simply very good...  

http://puqweq.tripod.com/  http://potsyteq.ohost.de/  http://puqweq.tripod.com/swarovski-animal/

Sunday, December 24, 2006 2:28 PM by Agias

# re: Managed Debugger Expression Evaluator

Thank you...

<a href=" http://video-slot-game.blogpostworld.org "> video slot game </a>

Friday, December 29, 2006 3:58 AM by None

# re: Managed Debugger Expression Evaluator

Saturday, February 03, 2007 10:49 PM by russian brides

# Good site

russian mail order brides

<a href="http://s-url.net/0q8h/ ">

russian mail order bride

</a>

[url=http://s-url.net/0q8h/ ]

naughty russian brides

[/url]

Tuesday, February 06, 2007 4:12 PM by nude russian brides

# Good site

hot russian bride

<a href="http://atk.jp/mjqu ">

russian bride scams

</a>

[url=http://atk.jp/mjqu ]

hot russian brides

[/url]

Sunday, February 11, 2007 5:26 PM by small boobs

# Good site

big boobs

<a href="http://rubyurl.com/rit ">

big boobs

</a>

[url=http://rubyurl.com/rit ]

mommy got boobs

[/url]

Tuesday, February 13, 2007 2:20 PM by nice boobs

# Good site

mommy got boobs

<a href="http://shrinkurl.us/smallboobs ">

black boobs

</a>

[url=http://shrinkurl.us/smallboobs ]

boob

[/url]

Friday, February 16, 2007 12:57 PM by boob

# Good site

nice boobs

<a href="http://rubyurl.com/eHz ">

huge boobs

</a>

[url=http://rubyurl.com/eHz ]

boobs

[/url]

Monday, February 19, 2007 11:15 AM by black boobs

# Good site

bouncing boobs

<a href="http://myurl.com.tw/opnj ">

naked boobs

</a>

[url=http://myurl.com.tw/opnj ]

bouncy boobs

[/url]

Wednesday, February 28, 2007 4:24 AM by viki,http://hometown.aol.com/eryopt4t/cuties.html

# http://hometown.aol.com/eryopt4t/cuties.html,my name is zet

Wednesday, March 14, 2007 6:12 PM by car insurnce

# Good site

Cool site! Very good owner

<a href= http://top20travels.info/blog/car-ijnsurance.html >car ijnsurance</a> [url=http://top20travels.info/blog/car-ijnsurance.html]car ijnsurance[/url]

Wednesday, March 14, 2007 6:20 PM by car inurance

# Good site

Big bro! Only for your new sites!!!!

<a href= http://top20travels.info/blog/car-insuranec.html >car insuranec</a> [url=http://top20travels.info/blog/car-insuranec.html]car insuranec[/url]

Thursday, March 15, 2007 5:10 PM by car inurance

# Good site

Big page! Big site! Hello!

<a href= http://top20travels.info/blog/car-insurace.html >car insurace</a> [url=http://top20travels.info/blog/car-insurace.html]car insurace[/url]

Thursday, March 15, 2007 5:18 PM by car insuance

# Good site

Cool site! Very good owner

<a href= http://top20travels.info/blog/car-insruance.html >car insruance</a> [url=http://top20travels.info/blog/car-insruance.html]car insruance[/url]

Sunday, March 18, 2007 10:23 PM by inside

# Good site

Merci pour toutes ces jolies creations.

Friday, March 23, 2007 10:22 AM by bwwuxd

# Good site

Wednesday, April 04, 2007 3:57 AM by mag

# Good site

Your site is best look my site - <a href="http://freecal.brownbearsw.com/Magnarx">Magna rx</a>

Wednesday, April 04, 2007 2:08 PM by Peni

# Good site

Your site is best look my site - <a href="http://freecal.brownbearsw.com/Magnarx">Magna rx</a>

Monday, May 14, 2007 4:07 PM by w6p1336bpr

# re: Managed Debugger Expression Evaluator

gl115xw0 <a href = http://www.405024.com/839385.html > wmrl0uyfbx5rr03f </a> [URL=http://www.341821.com/758763.html] esn19te1dp733g [/URL] mxdxuhrho1

Friday, August 03, 2007 1:11 PM by Gustavo

# re: Managed Debugger Expression Evaluator

Oh my god. So much spam for a very interesting topic. Thanks for you post. I was killing myself because my c++ datatypes weren't working because of a second file. This means if I change any struct I should update both files?

New Comments to this post are disabled
 
Page view tracker