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
2
votes
0 answers
QuickWatch/Immediate window cannot set new DateTime
I have a c# model with a DateTime property LastActivityDate, and I am trying to change it date to something else (some back date) while debugging from Quick Watch window (also tried immediate window). But when I do so, I got crash
Object reference…

SSD
- 1,373
- 2
- 13
- 20
2
votes
0 answers
Visual Studio Immediate Window - Problems with Web Applications
Does anyone have any experience in using the Visual Studio Immediate Window with Web Applications? I have VS2010 Ultimate, and the immediate window works just as expected (i can evaluate code while in design mode), when using for ex. Console…

scripni
- 2,144
- 2
- 19
- 25
2
votes
1 answer
Static Class Method in Immediate Window
If I have a class FilePathHandler which has a static method FormatSubPath and I breakpoint in my code is there a way to call this method either in the immediate window or watch window?
Usage;
var temp = FilePathHandler.FormatSubPath(path);
If I…

windowsgm
- 1,566
- 4
- 23
- 55
2
votes
3 answers
Calling C# Method VS in Immediate Window, Getting 'System.Threading.ThreadAbortException'
I am attempting to run some fairly simple code in the Visual Studio immediate window. All the code does is read some JSON input, from a file, and uses that to call some other methods, for loading a database with values. Here's the code block:
using…

Michael Doleman
- 522
- 2
- 9
- 24
2
votes
1 answer
Immediate Window inserts line breaks in output
I find myself debugging REST services lately and that involves visualising a lot of JSON.
When I have receive a JSON string and attempt to print it to the Immediate Window using the command ?jsonString,nq, the string is printed with a line break…

Coxy
- 8,844
- 4
- 39
- 62
2
votes
1 answer
Implement immediate window for vbscript
I Have implemented a debugger using C#. It uses MSSCRIPT.ocx as a vbscript engine.
Can anyone tell me how i can implement immediate window feature in it.
Desired Feature:
Should Show all the available variables along with their values :
E.g.
i =…

Jaskaran
- 320
- 5
- 19
2
votes
1 answer
Automate VisualStudio immediate Window
I'm trying to automate the process of opening crash dumps for managed applications and retrieving the stack trace. Windgb works sometimes, but getting it to load the correct version of sos.dll is a nightmare unless the machine processing the dump…

Mark P Neyer
- 1,009
- 2
- 8
- 19
2
votes
3 answers
Debugging in Monodevelop on OSX not quite working
Hey guys, just installed on my Mac Snow Leopard OSX:
Mono 2.6 and Monodevelop 2.2
I've created a simple C# Console App:
public static void Main (string[] args)
{
Console.WriteLine ("Hello World!");
Console.Read();
}
When I…

andy
- 8,775
- 13
- 77
- 122
1
vote
1 answer
Immediate window not executing selenium webdriver code
Verified in both VS2019 and VS2022.
I just recently started noticing that I wasn't able to execute selenium webdriver code in the immediate window anymore.
Before, I know for a fact I was able to perform different driver actions in the immediate…

user1818298
- 509
- 2
- 8
- 23
1
vote
0 answers
Getting " Expected ';' " in the visual studio immediate window
I type something like ?311610.ToString(), and it gives me the error saying Expected ';'
What am I doing wrong?
Update:
Sorry, I forgot to mention I was debugging javascript.

deostroll
- 11,661
- 21
- 90
- 161
1
vote
1 answer
Call C++ function inside VS watch or immediate window
Question is fairly simple: Is there a way to call a C++ function from watch window of visual studio, when that function is declared in File1.hpp, defined in File1.cpp and the debugger is currently stopped with a breakpoint in…

Angelos Gkaraleas
- 310
- 1
- 10
1
vote
0 answers
Microsoft Visual Studio Community 2019 16.8.1 Immediate Windows outputs too much now for non-primitive data structures
On Microsoft Visual Studio Community 2019 Version 16.8.1 I get the following problem on the immediate window:
Before version Version 16.8.1
a=[2,3]
a
[2, 3]
After version Version 16.8.1 I get all of this
a=[2,3]
a
[2, 3]
append:

Eurico Covas
- 11
- 1
1
vote
1 answer
Can I call a C# function from the Immediate Window without compiling my whole project?
Back in my VB6 days, I could use the Immediate Window to run a quick sanity test on a function, even if the rest of my code was in a broken state:
It was handy for quick and dirty REPL debugging.
When writing C# code in Visual Studio, I can't call…

rkagerer
- 4,157
- 1
- 26
- 29
1
vote
1 answer
How to show directories in vba's immediate window?
I want to list all directories in c: disk in vba's immediate window,write the below code in immediate window:
Dim FileName As String
FileName = Dir("C:\", vbDirectory)
Do While FileName <> ""
Debug.Print FileName
FileName = Dir()
Loop
Now…
user7988893
1
vote
0 answers
Why does my sub not work when it runs fine in immediate window excel vba
I've been trying to get the typical hide sheets/unhide sheets code to work for encouraging Macro enabling. Since I lock down saving, I needed to do it slightly differently than putting it in the Workbook_BeforeClose Sub as usually is done.
But...my…

jimm
- 33
- 9