Re: About debugging
I look at addresses for pointers all the time and this is one thing I find
VS 2008 to be better at (easier to drag and drop to memory windows, etc.) I
also find the viewers in the watch windows to be much more elegant. One
other thing you get is multi-level drop downs for pointers that point to
something else or pointers that point to objects with member variables.
If you want to see the value for the variable you can use the memory
windows. I find that to be the best way to see the real contents.
Tom
"Tony Johansson" <johansson.andersson@telia.com> wrote in message
news:DdHUk.4218$U5.28879@newsb.telia.net...
Hello!
It works fine with primitive types like int and long but not for pointer
variables
because I can't see the address of a pointer in the same way that I can do
if I debug an MFC application
by using VS 6.0.
It seems to me that VS 2008 is not able to display address for pointer
varaibles
in the debugger.
//Tony
"Ajay Kalra" <ajaykalra@yahoo.com> skrev i meddelandet
news:f297912d-6323-4d63-8312-c9e3be1b9d00@c2g2000pra.googlegroups.com...
On Nov 18, 4:27 am, "Tony Johansson" <t.johans...@logica.com> wrote:
Hello!
I use VS2008 and start from C# asp.net and debug a MFC dll but there is a
problem.
It's impossible to see value for types that are pointers in MFC.
If I for example have this type CStringItem* m_pPos;
I can't see the value for this variable m_pPos in the debugger for
VS2008.
Is it anybody who knows what I can do to see the value for this variable.
//Tony
It should show up correctly as long as your module has the debug info
in it. You can cofirm it by placing m_pPos in watch window and see
its value.
How are you ensuring that this value doesnt show up?
--
Ajay