Immediate window

V

vul

In VB6 I used to use Immediate Window to get or change values of variables.
It is very convenient while debugging. I used drag and drop operation to
paste the variable name into Immediate Window. In VB 2005 this approach
either doesn't work or I need to do it some different way. Of course VB 2005
environment allows to see values right in the code window, but it's true
only for not too long strings. With a long string I still need Immediate
Window.
How does it work now?
Or there is no more drag and drop for this window?

Thank you
Al
 
C

Chris Dunaway

vul said:
In VB6 I used to use Immediate Window to get or change values of variables.
It is very convenient while debugging. I used drag and drop operation to
paste the variable name into Immediate Window. In VB 2005 this approach
either doesn't work or I need to do it some different way. Of course VB 2005
environment allows to see values right in the code window, but it's true
only for not too long strings. With a long string I still need Immediate
Window.
How does it work now?
Or there is no more drag and drop for this window?

Thank you
Al

Add the variable to the watch window. Then you can change its value
during debugging.
 
V

vul

Thank you Chris.
I know that way, but still want to use what I like in VB6.
Watch Window doesn't replace Immediate Window. For instance I'm walking
through my code and with Immediate Window (in VB6) I can quickly drag and
drop any variable I suspect. I do not need to remember them after I saw
their values, or changed the value. With Watch I need to add variables,
delete them etc.
My question is just if it's possible to use Immediate Window the way it was
used in VB6 (drag/drop). It allows to paste the variable into it, but no
drag/drop.

Al
 
O

Oenone

vul said:
With a long string I still need Immediate Window.

I know it's not quite what you're asking for, but if you hover over a string
variable so that the value tooltip appears, and then click the little
magnifying glass icon next to the value, it'll open a pop-up window with the
full content of the string in it. Personally I find this substantially more
useful then printing the value into the immediate window in most cases.

If you click the little drop-down arrow next to the magnifying glass, you
can choose to view the string as HTML or XML too.
 
V

vul

Thank you Oenone.
Either it requires some changes in settings or some other things, but after
I hover over a string, I get tool tip only, no magnifying glass, no little
drop down error. Toll tip shows the string if it's short in length,
otherwise it appears truncated. Just due to this limitation I was looking
for an approach to use drag/drop

Al
 
T

The Grim Reaper

Am I just being a bit presumptious here, or have you all missed
something?!?!
I've got an Immediate Window in VS 2005 that I've been using for months!!

Admittedly, it was a challenge to remember how I opened it... since it's not
on the default menus.
Open the Command Window (View menu --> Other Windows --> Command Window),
then just type Immed and press enter in that window.
The Immediate Window pops up - or at least it does on my work machine, my
home machine and my laptop :D
All running Professional edition - that might make a difference.
_________________________________
The Grim Reaper
 

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