Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VS 20102, VB .NET: how to check Public memvars/arrays/objects in IDE in Debug mode? 1

Status
Not open for further replies.

IlyaRabyy

Programmer
Nov 9, 2010
571
US
Colleagues,
The IDE has "Locals" tab that shows only local memvars ("Dah!")
Me, personally, ain't like using Public memvars, but sometimes I need them. I keep their quantity to minimum, but they are still present.
"As fate would have it", I need to check these Public memvars during Debug execution (especially - when it's a pointer on an object or an array).
Is there any way (except memory dump on disk every once in a while) to check the contents of these Public memvars during the Debug run in IDE?

AHWBGA!


Regards,

Ilya
 
Clarification: "Memvars" == "Memory variables".
T's old habit to call them "memvars", since my early days of programming on FoxBase, Turbo C/C++ and VB ver. 1.0.


Regards,

Ilya
 
>Clarification: "Memvars" == "Memory variables".

Or, as most of us would probably refer to them: variables

By Public, I presume you mean globally available variables

Add the ones you are interested in to the Watch window.

 
T's old habit to call them "memvars", since my early days of programming on FoxBase, Turbo C/C++ and VB ver. 1.0."

I've been programming over thirty years and never once heard them referred to as that.

Maybe I missing the question...if they are public variables can't you just hover over them for the value? Plug then into the Immediate window with a question mark in from of it?

?memvars

Put it in a debug statement Debug.Print(memvars)

Put it in a message box MessageBox.Show(memvars)

So many options...I think I misunderstand your question.

 
To StrongM: this is exactly what I needed! Thank you!

To SaltyTheFrog: hovering mouse pointer over the memvar during Debug works, but you can see the variable's value only if it's a scalar one, whereas I need to see the properties of an object defined by a pointer, that latter being a Public variable.

To all: consider me enriching your vocabulary with this new term, "MemVar"! :)

Thank you all, colleagues, and I wish nice weekend to y'al! [bigsmile]


Regards,

Ilya
 

To all: consider me enriching your vocabulary with this new term, "MemVar"! smile

You should let Google know about it also...they don't seem to [nosmiley]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top