473,324 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Why can't I look at Items in a collection in the debugger?

I'm getting very frustrated with VB.NET debugging issues.

Example;

I'd like to see what values are in the Session collection and all I get from
the debugger is "<cannot view indexed property>" -- Using
Session.Keys.Item.

Yet in C# debugger it will show me the Session.Keys.Item??

Can someone explain this to me as I'm completely baffled -- maybe my VS 2003
was just not installed correctly? Or is this Microsoft's way of forcing
everyone to the messy syntax flow that is called C?

Thanks, Rob.
Nov 21 '05 #1
2 1120
I found it annoying myself. However, I did find that I could drill into the
specific value

myds.tables(0)
will not give me each row

myds.tables(0).rows
will give me a row
myds.tables(0).rows(0)
will give me a row

I think it has to do with the way VB uses reflection to provide us the
information. In any event, I haven't found a better way.
"Rob R. Ainscough" <ro*****@pacbell.net> wrote in message
news:eX**************@TK2MSFTNGP11.phx.gbl...
I'm getting very frustrated with VB.NET debugging issues.

Example;

I'd like to see what values are in the Session collection and all I get
from the debugger is "<cannot view indexed property>" -- Using
Session.Keys.Item.

Yet in C# debugger it will show me the Session.Keys.Item??

Can someone explain this to me as I'm completely baffled -- maybe my VS
2003 was just not installed correctly? Or is this Microsoft's way of
forcing everyone to the messy syntax flow that is called C?

Thanks, Rob.

Nov 21 '05 #2
But it is available in C# -- which is really confusing me. I really hope
this is addressed in VS 2005 unless MS are thinking they just want to
support one language and C# will be that one language. I don't mind C#, but
it just doesn't read as well as VB and for encouraging new developers along
they often prefer the VB syntax over C#. Both languages do the same, but I
don't understand why important debugging features were left out of VB.

"AMDRIT" <am****@hotmail.com> wrote in message
news:OF**************@TK2MSFTNGP12.phx.gbl...
I found it annoying myself. However, I did find that I could drill into
the specific value

myds.tables(0)
will not give me each row

myds.tables(0).rows
will give me a row
myds.tables(0).rows(0)
will give me a row

I think it has to do with the way VB uses reflection to provide us the
information. In any event, I haven't found a better way.
"Rob R. Ainscough" <ro*****@pacbell.net> wrote in message
news:eX**************@TK2MSFTNGP11.phx.gbl...
I'm getting very frustrated with VB.NET debugging issues.

Example;

I'd like to see what values are in the Session collection and all I get
from the debugger is "<cannot view indexed property>" -- Using
Session.Keys.Item.

Yet in C# debugger it will show me the Session.Keys.Item??

Can someone explain this to me as I'm completely baffled -- maybe my VS
2003 was just not installed correctly? Or is this Microsoft's way of
forcing everyone to the messy syntax flow that is called C?

Thanks, Rob.


Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: pantichd | last post by:
<I also posted this on microsoft.public.vsnet.debugging 'cuz I didn't know which was more appropriate or would get quickest response> Hello, Can someone tell me how I can view the contents...
7
by: Claire | last post by:
Im sat here watching task manager and the memory consumption of my application rising second by second. What tools are there out there for me to use to find where it's all going please? (I wish...
7
by: Visual Systems AB \(Martin Arvidsson\) | last post by:
Hi! I'v been struggeling with removing selected items from a listview. Anyone that can give me a piece of code that does this? I am a newbee to this C# and cant figure it out.... Regards...
5
by: David C | last post by:
This is very strange. Say I have code like this. I am simply looping through a collection object in a foreach loop. Course course = new Course(); foreach(Student s in course.Students) {...
0
by: Elaine | last post by:
I have a truly curious problem with HtmlHelp and Sibling Mode in Visual C++ ..Net 2003 in an MFC app. Sibling mode allows the help viewer to display on top of the app, but if the app is clicked,...
3
by: Stimp | last post by:
I have a listbox of values that I populate from a database. I want the user to be able to re-order the list (by first selecting an item and then clicking 'up' or 'down' buttons) and then save...
2
by: Jason Ferree | last post by:
I am trying to loop through all messages in the inbox. To do something, in my case, look for and save attachments. It is telling me that items is not a collection. I've tried everything I can...
22
by: Zen | last post by:
Hi, My production machine has 2G of memory, when aspnet_wp.exe goes up to about ~1.2G of memory usage, I start get out-of-memory exception. Other processes don't use as much memory and I added...
6
by: active | last post by:
I need a combobox where the items are typed as string - not object. And another where the items are from a class I generated. Can one make such comboboxes from System.Windows.Forms.ComboBox?...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.