enums, 2005, and the debugger

P

Peter Oliphant

Not a big deal, but it looks like the runtime debugger 'inspects' (e.g.,
Autos window) user-defined enum's as having <undefined value>, even though
the execution seems to recognize their value just fine.

Is this normal, or is there something 'wrong' with my enum somehow (don't
think that's possible); or best yet, is it possible to make the debugger
recognize enum's and show its enum (alias) name when inspecting?

[==P==]

PS - I'm using VS c++.NET 2005 Express...
 
T

Tarek Madkour [MSFT]

Not a big deal, but it looks like the runtime debugger 'inspects'
(e.g., Autos window) user-defined enum's as having <undefined value>,
even though the execution seems to recognize their value just fine.

Is this normal, or is there something 'wrong' with my enum somehow
(don't think that's possible); or best yet, is it possible to make the
debugger recognize enum's and show its enum (alias) name when
inspecting?

Yes, this is a known issue with debugging *managed* code using the VS
debugger. It should work for native code, though.

Thanks,
 
P

Peter Oliphant

Thanks Tarek!

You say this is a 'known issue'. That's not the same as saying it's a bug
needing fixing. Is this something that is planned to be fixed? After all,
isn't the push away from native code and towards (/clr) managed code? If so,
I would think that any disadvantage that managed code has should be
remedied, yes? : )

[==P==]
 
T

Tarek Madkour [MSFT]

You say this is a 'known issue'. That's not the same as saying it's a
bug needing fixing. Is this something that is planned to be fixed?

Yes, we are aware of several native / managed inconsistencies in the
debugger that we are currently developing a plan to remedy.
Unfortunately, the scope of the work is beyond a few minor bug fixes.
Several components need to be changed (and possible shared) in order to
achieve success.

Thanks,
 
P

Peter Oliphant

Hi Tarek,

I figured it wouldn't be an easy or quick fix. But it's good to know it is
considered a problem to be fixed at some point.

When it is fixed, my 'dream case' would be that it didn't just show the
value for an enum, but the variable name equivalent (which is, after all,
one of the main reasons for using an enum over just establishing a
convention based on int value). Is this the plan? : )

[==P==]
 
T

Tarek Madkour [MSFT]

When it is fixed, my 'dream case' would be that it didn't just show
the value for an enum, but the variable name equivalent (which is,
after all, one of the main reasons for using an enum over just
establishing a convention based on int value). Is this the plan? : )

That would be my expectation of the feature as well :)

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top