471,337 Members | 1,193 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

debugging during break

During debugging a console application using my Visual Studio, I have an
instance of a string reference type that I want to watch. When I check the
value of a property for that instance, such as 'string.Substring(7)' by
typing it in the command window I get the 'error: 'string.Substring' does not
exist' message.
What setting do have to change in order to see the property values on a
breakpoint?

thx
-jsh
Feb 1 '06 #1
3 1357
You should be doing that in the IMMEDIATE window and NOT the COMMAND window.

--
Thanks
Vipul Patel
C# MVP www.microsoft.com/mvp
Log bugs at http://msdn.microsoft.com/productfeedback

"js********@hotmail.com" <js*****************@discussions.microsoft.com>
wrote in message news:78**********************************@microsof t.com...
During debugging a console application using my Visual Studio, I have an
instance of a string reference type that I want to watch. When I check the
value of a property for that instance, such as 'string.Substring(7)' by
typing it in the command window I get the 'error: 'string.Substring' does
not
exist' message.
What setting do have to change in order to see the property values on a
breakpoint?

thx
-jsh

Feb 1 '06 #2
Thanks for the response. After further iterations of debugging I've noticed
that the behavior I describe is sporadic. So, I'll just have to live with
that. Maybe its due to not enough memory resources.

thx
-jsh
Feb 1 '06 #3

"js********@hotmail.com" <js*****************@discussions.microsoft.com>
wrote in message news:78**********************************@microsof t.com...
During debugging a console application using my Visual Studio, I have an
instance of a string reference type that I want to watch. When I check the
value of a property for that instance, such as 'string.Substring(7)' by
typing it in the command window I get the 'error: 'string.Substring' does
not
exist' message.
What setting do have to change in order to see the property values on a
breakpoint?


string.Substring is an instance method on the string class so I don't see
how that could ever work.
Assuming that by "string" you actually mean "name" or somesuch then I
suspect that your problem is to do with the relevant object being out of
scope.
Feb 2 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by VMI | last post: by
1 post views Thread by Ole | last post: by
reply views Thread by rosydwin | last post: by

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.