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
0
votes
1 answer
Excel VBA UDF Executes in Immediate Window, Fails on Worksheet
UDF "NAV()" is designed to find the correct report on a network drive based on the first argument (always a date), then loop through all worksheets to find a piece of data with the same row as second argument and same column as third argument…

Micah Neely
- 3
- 3
0
votes
0 answers
Rendering Html Control while debugging in Visual Studio
I am using .NET4.5, MVC5, C# and Visual Studio 2013. I have ViewModel that has collection of UserInformation.
public class UserInformation
{
[Required(ErrorMessage = "Please enter your first name"), Display(Name = "First name")]
…

Matas Vaitkevicius
- 58,075
- 31
- 238
- 265
0
votes
1 answer
How to navigate to another page in Immediate Window?
I'm trying to navigate to a page with the help of Immediate Window in Visual Studio. I'm using Windows Phone 8.1 Emulators. Normally when writing things like x = 1; etc. does work very well. But when I'm trying to use navigation…

sertsedat
- 3,490
- 1
- 25
- 45
0
votes
0 answers
How to save commands typed in the immediate window in Visual Studio?
If I have a couple of commands needed to debug something in the Immediate Window of Visual Studio I copy out line-by-line into a textfile. For the next debug-session line-by-line has to be pasted back into the immediate window.
If I try to…

Christian St.
- 1,751
- 2
- 22
- 41
0
votes
2 answers
Can javascript open a secondary window before the full document is loaded?
I am writing a CGI application which sometimes takes up to one minute to run, but not always. In the cases I am able to predict the delay, I would like to open another window warning the user of the expected delay. My first attempt was to have my…

Ruy
- 511
- 5
- 14
0
votes
1 answer
Cannot open immediate window when debugging WPF VB.net
I can't get the Immediate Window to open using VS2010 Express Edition in WPF. I have opened countless times by setting break points and hitting ctrl-G or from the menu. I don't get any error message and I can open it when I am not in debug mode. The…

djoniz
- 11
- 2
0
votes
2 answers
How to write the contents of the Immediate Window to a text file
I am very new to VBA. I searched a lot on the , but I still don't get it.
This is my sample code:
Sub test()
a = 10
b = 2
c = 10 / b
Debug.Print c
On Error GoTo x
x:
If Err > 1 Then
Debug.Print "The most…

user3388444
- 39
- 9
0
votes
0 answers
Why: A first chance exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll?
I get this in the immediate window while debuging:
A first chance exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll
Okay So I created a version checker to check if the version is correct else update.
It is not…

miguel.renaud
- 85
- 1
- 2
- 7
0
votes
0 answers
How can I change the values of elements in a vector from Visual C++'s debugger
I'm used to being able to modify collection elements in C# from Visual Studio's Immediate Window. However, in C++, when I attempt to do this with a vector, I get an odd error. First, here's my collection:
vector& data;
Now, from the…

Justin R.
- 23,435
- 23
- 108
- 157
0
votes
0 answers
A piece of code gets executed only in immediate window in VS 2010
I have a line of code behaving weirdly.
objectType = ((DependencyObject)obj).GetValue(FrameworkElementExtensions.IdProperty) as string;
The above line returns "" when i run the code or even when i debug the code. But when i execute the same…

Anee
- 463
- 9
- 26
0
votes
2 answers
How can I find the type of a datasource?
I am trying to debug the following line of code
binding.DataSource = this.bindingSource.DataSource;
and want to find out more information about binding.DataSource
In the immediate window the query ? binding.DataSource returns
Count = 1
[0]:…

Kirsten
- 15,730
- 41
- 179
- 318
0
votes
2 answers
Using Visual Studio Immediate Window like VBA immediate window
In the VBA immediate window, I can simply type the following at any time:
?Len("Four")
Press enter and get the result:
4
If I try to do that in Visual Studio Express (VB.NET), I get the following result:
The name 'Len' does not exist in the…

mwolfe02
- 23,787
- 9
- 91
- 161
0
votes
1 answer
Wrong computation inside a loop
All,
I haven't encountered something as frustrating as this is before. Your help with regards to this EXTREMELY NAIVE problem would be appreciated. It seems that the problem is very simple, but I dove too much into it that my eyes can't catch the…

Alaa Elwany
- 677
- 7
- 15
- 20
0
votes
1 answer
Modify the ASP.NET Session during debug?
Is it possible to modify values, keys or even clear the Session during debugging of an ASP.NET page?
I tried the following in the Immediate Window (in the presented order), but nothing changed the Session object:
Session.Clear()
Expression has been…

Protector one
- 6,926
- 5
- 62
- 86
0
votes
2 answers
What is ".load" in .load sos?
In Visual Studio I use .load sos in the Immediate Window to load sos.dll. What is this '.load'? Is there some description for it?
In the Immediate Window I Can:
Evaluate an expression (? varA), execute program command (varA=1) or execute VS commad…

IvanH
- 5,039
- 14
- 60
- 81