Groups | Blog | Home
all groups > visual studio .net debugging > december 2004 >

visual studio .net debugging : Can not see the properties of an object in the watch window


JP.Sklenka
12/21/2004 3:45:02 PM
The watch window is used for evaluating/manipulating variables and
expressions. You may be more interested in the immediate window to perform
actions such as ToString(), Count, etc on your object.

If you're just interested in evaluating variables (such as the items in an
ArrayList) then make sure you have instantiated and populated your object
members with something. What type of object is it? An ArrayList, for
example, will not show what varaibles make up the arraylist until you
populate the ArrayList.

[quoted text, click to view]
Toby Te Rupe
12/22/2004 12:14:00 PM
VS.NET 2003 1.1 Framework. When I add an object into the watch window I can
not see any of the properties of the object. :( Can anyone please tell me
why.
TIA

Toby Te Rupe
12/22/2004 1:30:45 PM
Sorry, but the object is a strongly typed object.
eg Datarow. I can not see any properties of any object.
example

Readonly property Test as System.Data.DataRow
Set(ByVal Value As System.Data.DataRow)
moValue = Value
End Set
End Property

If I stop the debugger on moValue and add movalue to the watch window I can
not see any object properties of Datarow.

[quoted text, click to view]

joeycalisay
12/23/2004 11:38:24 AM
Can you tell us the message if you are trying to watch the said variable?
Have you tried using the immediate window?
[quoted text, click to view]

Toby
12/24/2004 11:11:16 AM
Actually resolved this problem!
We found that it was due to adding an empty porject to our solution, can you
beleive that. i.e the project included had no files. just a place for future
development.

We found that when we removed this empty project from the solution the
debugger worked fine!
If you add one class to empty project all is well too, a bug in VS.NET
prehaps?!
Oh well, I am a much happier camper now.

Cheers everyone.


[quoted text, click to view]

AddThis Social Bookmark Button