debugging during break

G

Guest

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
 
V

Vipul Patel

You should be doing that in the IMMEDIATE window and NOT the COMMAND window.
 
G

Guest

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
 
N

Nick Hounsome

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top