One of the views used for debugging purposes in Visual Studio IDE and the VBA IDE. Can be used to display output at runtime, amend properties of variables and objects in break mode, and perform basic queries in break mode and design mode.
Questions tagged [immediate-window]
138 questions
137
votes
3 answers
How do you use the Immediate Window in Visual Studio?
The Immediate Window is an immensely useful tool for debugging applications. It can be used to execute code statements that are valid in the context of a break point and inspect values. I also use it to type code snippets to learn language…

Phillip Ngan
- 15,482
- 8
- 63
- 79
121
votes
8 answers
Visual Studio immediate window command for Clear All
Is there a command to clear the immediate window in Visual Studio?
I hate having to grab the mouse for a right click menu there - would rather just type "cls" or something.

Scott Ivey
- 40,768
- 21
- 80
- 118
98
votes
5 answers
Visual Studio Immediate window: how to see more than the first 100 items
I am trying to see the properties of an object with over 300 properties in the Immediate Window of Visual Studio 2005. Only the first 100 items are displayed, followed by this caption:
< More... (The first 100 of 306 items were displayed.) >
I am…

DOK
- 32,337
- 7
- 60
- 92
92
votes
3 answers
Immediate Window for Eclipse
Does Eclipse have an analog to Visual Studio's "Immediate Window", a window where I can evaluate statements while in the debugger?

Justin R.
- 23,435
- 23
- 108
- 157
81
votes
21 answers
Use VBA to Clear Immediate Window?
Does anyone know how to clear the immediate window using VBA?
While I can always clear it myself manually, I am curious if there is a way to do this programmatically.

Alpha
- 2,372
- 3
- 21
- 23
68
votes
4 answers
Dynamic in the immediate window causes 'Microsoft.CSharp.RuntimeBinder.Binder' is not defined or imported error
If I use dynamic in the immediate window of Visual Studio I get an error
Predefined type 'Microsoft.CSharp.RuntimeBinder.Binder' is not defined or imported
How can I fix that?

Colonel Panic
- 132,665
- 89
- 401
- 465
57
votes
2 answers
Newlines in the Immediate Window
Using Visual Studio 2010 Professional, I have a ToString() method that looks like this:
public override string ToString()
{
return "something" + "\n" + "something";
}
Because there are several "something"'s and each is long, I'd like to…

Bob Kaufman
- 12,864
- 16
- 78
- 107
53
votes
1 answer
Visual Studio Immediate Window - Lambda Expressions Aren't Allowed - Is there a Work-around or Alternative?
I'm debugging some tricky generic List-based code in VS 2010 - lots of hierarchy-processing etc.. Of course lambda expressions and anonymous methods aren't permitted within the immediates window and I can't be doing with stepping thru the code in…

immutabl
- 6,857
- 13
- 45
- 76
44
votes
4 answers
Immediate Window, "The expression cannot be evaluated...."
When I try to evaluate expression in Immediate Window at design time, I get error:
The expression cannot be evaluated while in design mode.
If I compile ASP.NET project and try to run it in debug mode I get another error:
The expression cannot be…

Tomas
- 17,551
- 43
- 152
- 257
38
votes
2 answers
How do I reference a namespace to be used in immediate or quickwatch?
Sometimes when I quickwatch an expression at runtime, the Quick Watch window shows an error saying the name does not exists in the current context. The same goes for the immediate window. The expression I try to evaluate, however, is perfectly…

ccalboni
- 12,120
- 5
- 30
- 38
36
votes
1 answer
lambda expressions in immediate window for VS2015
I am running Visual Studio 2015, where people claim that lambda expressions are supported in immediate window, watch and other places. But that does not work for me.
I created a new console application with the following code:
static void…

Stenkross
- 557
- 4
- 9
26
votes
2 answers
immediate window
Is there anyplace in the eclipse ide that I can enter immediate code while stoped at a breakpoint?
thanks

bugzy
- 7,086
- 9
- 42
- 44
24
votes
3 answers
How to execute LINQ and/or foreach in Immediate Window in VS 2013?
Immediate Window is fantastically useful tools when probing the current state during debugging process. I learned that by using the question mark, one can do a bit more in there as shown in this post.
However, I still don't know how to execute LINQ…

Konrad Viltersten
- 36,151
- 76
- 250
- 438
24
votes
8 answers
How to print two dimensional array in Immediate window in VBA?
How to print two dimensional array in Immediate window in VBA ? Does it exist any generic method for doing this ? Some method for ploting one row of array per line in Immediate window could solve this problem, because then only thing to do is to…

Qbik
- 5,885
- 14
- 62
- 93
18
votes
2 answers
Call an async method in the immediate window Visual Studio
I'm stopped in a breaking point and I need to watch the result of calling, in this context, an async function using the Immediate Window. So I tried
var things = await Client.GetThingsAsync("aParameter");
The 'await' operator can only be used…

user33276346
- 1,501
- 1
- 19
- 38