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
1
vote
1 answer

Execute With...End With Statement in Immediate window, Excel VBA

I'm trying to execute With...End With Statement in the Immediate Window, but I'm not getting it to work. So my question is how do you execute multiple line of Code concerning With...End With Statement in the Immediate window? My code I'm trying to…
SweDentan
  • 67
  • 8
1
vote
1 answer

json_serializer.DeserializeObject, immediate window, VS2017

I am a c# beginner (but quite familiar with JavaScript), and I am learning by debugging example code. I have a question now regarding the "immediate window". I set a breakpoint at (... nested object sent via JSON from some external javascript code…
user11136651
1
vote
0 answers

How to call a COM method while looping in VS immediate window

I have a list with several objects with different IDs. In order to know the ID of an object I have to call a COM method: fooList[i].GetID() In the Immediate window I can write: ? fooList[0].GetID() And it works perfectly. However, I would like…
1
vote
2 answers

Immediate window - how to call a function from a DLL which has hyphens, periods and numbers in its filename?

I want to run this in the immediate window: ?(char*)mono-2.0-bdwgc.dll!mono_pmip((void*)0x0000017866931945) I get this back: identifier "mono" is undefined The DLL with that name is definitely loaded. I have tried encasing the DLL name in quotes,…
Ben Hymers
  • 25,586
  • 16
  • 59
  • 84
1
vote
1 answer

Is it possible to install custom unhandled exception handler while debugging in VS 2008/2010?

I'm working on an utility that processes very large data sets. Since there are lots of code it uses to operate, some totally unexpected errors appear while running. So I run it inside Visual Studio debugging session. In most cases I can skip an…
1
vote
1 answer

Memory Dump in Visual Studio

I'm trying to follow this tutorial but with the immediate window in vs2010 rather than WinDBG: http://blogs.msdn.com/b/dougste/archive/2005/11/25/497016.aspx but I'm getting stumped by the following: Each static is represented by a particular…
1
vote
2 answers

send debug.print to different Immediate window

I have set up a multithreading routine in Access which opens up several Access files at the same time and executes a specific function in each file. The files act in parallel. I would like to send Debug.Print messages to the main file which…
Ian Cox
  • 85
  • 3
  • 12
1
vote
3 answers

How to tell if Sub is called from immediate window

Some subs I only ever want to run from the immediate window, like this slightly risky one: Public Sub clear() Application.SendKeys "^a", True Application.SendKeys "{delete}", True End Sub In case you can't work it out; it sends ctrl+a and Del to…
Greedo
  • 4,967
  • 2
  • 30
  • 78
1
vote
1 answer

Does the immediate window provide a nice way to display a primitive array?

I dynamically assigned an array as follows: unsigned char **nonces=new unsigned char*[n_cases] Is there a way to nicely print it out in the immediate window? Alternatively, it would be nice to make the locals window display it properly.
Casebash
  • 114,675
  • 90
  • 247
  • 350
1
vote
2 answers

Can you perform an iteration in the VB6 immediate window?

While debugging a VB6 program it would be useful to output a fairly large multidimensional array in the immediate window. That would enable copy/paste to another editor for analysis and would be easier than clicking through the array in the locals…
StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
1
vote
1 answer

Visual Studio Immediate Window Spawning Tasks and Threads blocking issue

I use a specific tool to inspect my app. Once the app hits a breakpoint I can invoke my tool from the Immediate Window by calling a certain function. The tool itself is a multi-threaded Windows App and therefore spawns some tasks. The problem that I…
1
vote
0 answers

search for a string in memory in immediate window

I'm trying to use the immediate windows in C++ at runtime. The Relevant documentation in MSDN is here I saw this question also. But is is not yet solved and related to C#.
user2346536
  • 1,464
  • 2
  • 21
  • 43
1
vote
1 answer

struct Equality operator Immediate Window weird behaviour

I'm doing some experiments with structs and operators, and I came across a situation that I cannot understand. I have a struct that only contains an int. I've also implemteted 'implicit operator' methods so I can assign an int directly to it and…
BraCa
  • 351
  • 1
  • 5
  • 13
1
vote
1 answer

Escaping period in Visual Studio Find Immediate Window

I learned about entering into the immeidate window >of filename trick in visual studio, but when I enter a period, which is reserved for separating menu items, it populates some junk that is irrelevant to what I want. For example, if I type >of…
Haoest
  • 13,610
  • 29
  • 89
  • 105
1
vote
0 answers

Immediate Window constructor "Type 'class name' is not defined." issue

I am having issues testing classes/functions with Visual Studio 2013 Immediate Window. If I test my constructor in the Immediate Window- test = new Config() I get.. "Type 'Config' is not defined." if I test a public function inside the Config…
Bob
  • 11
  • 1