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

visual studio .net debugging : what is the deal with the command window in C# debugging projects


Eric Newton
1/18/2004 12:07:43 PM
its practically useless... I can print variables

? arrayList.Count

but i can't do this:

arrayList.RemoveAt(0)

or

[quoted text, click to view]
Command "arrayList.RemoveAt(0)" is not valid.

grrr!


--
Eric Newton
eric.at.ensoft-software.com
www.ensoft-software.com
C#/ASP.net Solutions developer

Les Smith
1/21/2004 6:23:48 AM
Eric
Something else has to be wrong, I just tried removing an
item from an arraylist of structure with

regionlist.removeat(0) and it worked.

Here is my command window

?regionlist(0).rname
"Helper Methods " {String}
String: "Helper Methods "

regionlist.RemoveAt(0)

?regionlist(0).rname
"Consturctor" {String}
String: "Constructor "

Constructor was at (1) until I did the removeat and then
it moved down to (0).

Check to make sure you have something in the arraylist. I
am using 2003 .NET.

Hope this helps.
Les

Articles, .NET info, add-ins, free code at
http://www.knowdotnet.com

[quoted text, click to view]
apennell NO[at]SPAM online.microsoft.com
2/4/2004 10:44:14 PM
You need to put the command window into Immediate mode if you want method
calls to work without prefixing everything with ?

In command mode it wants VS Commands (e.g. Debug.Watch). In Immediate mode
it wants expressions e.g. foo.bar(0)

I agree, it is very confusing.

--------------------
[quoted text, click to view]


--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
AddThis Social Bookmark Button