Questions tagged [immediate-window]

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.

138 questions
4
votes
2 answers

is there any command equivalent to readline in vba?

Is there a command equivalent to readLine of Java in VBA. I want to use the text input in the immediate window and put it in a variable. Is it possible?
Emi
  • 484
  • 2
  • 16
3
votes
1 answer

How can I use the Visual Studio `Immediate Window` to call external assembly method?

How can you deploy an assembly so that you can call methods within a utility library from the "Immediate Window", without having to add solution project references to MyCompany.DebuggingTools.dll? CONTEXT I have written a utility library (lets call…
3
votes
1 answer

How can I access members of a derived class's base class through the Immediate window in Visual Studio?

Using the Immediate (or Watch) window in Visual Studio (I'm using VS2015 Community Edition), it's possible to access properties or methods on classes while in break mode. However, for a class derived from another class I can't find a way to access…
3
votes
1 answer

Execute method with out parameters in immediate window

Is there a way to execute methods with out parameters in Immediate window? For example, while debugging I want to check if a string variable value can be successfully parsed into datetime. To do that I want execute datetime.Tryparse in immediate…
shanmuga raja
  • 685
  • 6
  • 19
3
votes
1 answer

The * operator must be applied to a pointer error in code

I can do var b = *myObject; in the immediate window and it gives me a 0x123456 formatted value. But I can't do this in code. It then says The * or -> operator must be applied to a pointer Why can I do this in the immediate window, but not in…
Mike de Klerk
  • 11,906
  • 8
  • 54
  • 76
3
votes
1 answer

Monodevelop C# script execution bug

I have a very simple if statement that is not working as expected. My main problem is, that the immediate window evaluates the if statement differently then the code execution: if( FreeProductStorageVolume < product.Volume * quantity ) { …
Jinjinov
  • 2,554
  • 4
  • 26
  • 45
3
votes
2 answers

MS Access VBA Create a immediate window popup or simulate one

I have a code with a recursive function that checks into a folder for folders and writes the name, ID, and depth of the folder in my database. The process is repeated until all folders are in the database (usually 200 folders per projects). When I…
trixrabbit
  • 259
  • 7
  • 22
3
votes
2 answers

Display exception information and Debug.Print() messages in Immediate Window

A friend of mine claims that calls to Debug.Print() as well as first-chance exception notifications appear in the Immediate Window for him. I found this surprising; for me they only appear in the Output Window. MSDN claims (here) that you can…
Timwi
  • 65,159
  • 33
  • 165
  • 230
3
votes
2 answers

Breaking the endless loop from watch or immediate window

I wrote app that uses while loop. And in my code I forgot to put break in a specific condition. I am running the application from the debugger. Now I need to quit from the loop. Some people could say just stop it and put that break line in, but I…
Dilshod
  • 3,189
  • 3
  • 36
  • 67
3
votes
2 answers

Immediate Window output programmatically

I have an application that is implementing its own C# console (via Roslyn's scripting engine). I already got the code to execute a statement and got the possible return value and now I would like to output a "nice" string to the console. The trivial…
Imi
  • 1,579
  • 1
  • 12
  • 22
3
votes
1 answer

Delphi debug.print function?

Does Delphi have a function similar to debug.print in VB, and if it does, how does one access the immediate window? Thanks.
user2378627
  • 33
  • 2
  • 5
3
votes
1 answer

String Compare Error

if I type this into my Immediate Window String.Compare("AA", "SA"); I get a result of 1 surely this is wrong? AA is less than SA so shouldn't it be -1? I am running .NET 4
pengibot
  • 1,492
  • 3
  • 15
  • 35
3
votes
2 answers

How can I tell if my code has been called from the Immediate Window?

Is there any way that my code can tell the difference between "I am executing in normal process context" and "I have been executed from the Immediate Window of the Debugger"? I have a library object which exposes a public property. When using the…
Joe
  • 483
  • 1
  • 4
  • 7
2
votes
1 answer

Catching a vbscript error from c# (the vbscriot executed from c#)

i'm trying to execute vbscript from c#, the vbscript runs always succesfully despite of the fact that i don't have permissions to run this script. the code: //nswp is the User's password foreach (char c in uspw) { …
2
votes
0 answers

.NET 6 stacktrace line numbers show in intellesense, but not log

In my error handler code if I put in a breakpoint and hover over the exception I can see the line numbers in the stacktrace. If I store my exception's stacktrace into a string variable to log it, the line numbers are not showing. This isn't a PDB…