immediate-window

VS immediate window “identifier undefined” when querying DLL functions w/ namespace

ぃ、小莉子 提交于 2020-05-17 05:28:15
问题 I have some DLL exported functions that I'm trying to call from inside of VS2017 immediate window. The functions in the C++ header look like this: namespace ma { bool MODEL_DECLSPEC ClearParameter(); bool MODEL_DECLSPEC GetResult(); : } However, when I stop at a breakpoint in my code and type into the immediate window ma::GetResult() It returns identifier "ma" is undefined I can call functions in the "std" namespace but not in my own namespace? EDIT: I did some more tests and the immediate

VS immediate window “identifier undefined” when querying DLL functions w/ namespace

给你一囗甜甜゛ 提交于 2020-05-17 05:23:47
问题 I have some DLL exported functions that I'm trying to call from inside of VS2017 immediate window. The functions in the C++ header look like this: namespace ma { bool MODEL_DECLSPEC ClearParameter(); bool MODEL_DECLSPEC GetResult(); : } However, when I stop at a breakpoint in my code and type into the immediate window ma::GetResult() It returns identifier "ma" is undefined I can call functions in the "std" namespace but not in my own namespace? EDIT: I did some more tests and the immediate

VS immediate window “identifier undefined” when querying DLL functions w/ namespace

北战南征 提交于 2020-05-17 05:21:27
问题 I have some DLL exported functions that I'm trying to call from inside of VS2017 immediate window. The functions in the C++ header look like this: namespace ma { bool MODEL_DECLSPEC ClearParameter(); bool MODEL_DECLSPEC GetResult(); : } However, when I stop at a breakpoint in my code and type into the immediate window ma::GetResult() It returns identifier "ma" is undefined I can call functions in the "std" namespace but not in my own namespace? EDIT: I did some more tests and the immediate

Visual Studio Immediate window: how to see more than the first 100 items

纵饮孤独 提交于 2020-01-22 10:08:08
问题 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 trying to see the rest of the items, but can't figure it out. I realize that I could see these in a Watch window, but that's not the same. 回答1: I know this is way late. However, If you add your object to the watch window. Expand the properties, where

Immediate Window for Eclipse

自闭症网瘾萝莉.ら 提交于 2019-12-20 08:38:34
问题 Does Eclipse have an analog to Visual Studio's "Immediate Window", a window where I can evaluate statements while in the debugger? 回答1: Eclipse has a really cool concept call Scrapbook Pages where you can evaluate statements even when you're not debugging. However, if you want to eval code using values from the current program, go to Window->Show View->Expressions. There you can put in any expression you want and track it as your program executes. 回答2: Yes. The view name is "Display". Window-

Newlines in the Immediate Window

混江龙づ霸主 提交于 2019-12-20 08:27:28
问题 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 see something something Sadly, I'm seeing "something\nsomething" Is there a way to get what I want? 回答1: Actually there is a way. You can use format specifiers in the immediate window to change the format of the display. If you have a string with carriage

Write SqlDataReader to immediate window c#

落花浮王杯 提交于 2019-12-20 00:59:32
问题 I am trying to debug a SQL response which is throwing an error: Conversion failed when converting the varchar value '0.01' to data type bit. That does not make a lot of sense as object does not have any bools. Code: using (var connection = _connectionProvider.GetDbConnection()) { connection.Open(); return connection.Query<Rate>(query, parameters); } SQL that gets executed (I manually added parameters): select * from (select top 1 BuildNumber, RateVersion, SampleId, Tariff, TariffStepName,

VS Immediate Window for C++ Declarations

耗尽温柔 提交于 2019-12-18 20:19:30
问题 Recently I discovered that it's possible to declare variables in the Visual Studio immediate window while debugging. This feature is really useful because if I want to experiment with the code in that context, I can create new variables without modifying the real code in the new window, and I can then explore them in the watch window. This works great for a C# project I have been debugging, but now I'm trying to do the same thing for a basic C++ declaration in a different project. I break at

How to execute LINQ and/or foreach in Immediate Window in VS 2013?

我们两清 提交于 2019-12-13 11:54:00
问题 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 queries there ( including lambda expressions). I've also failed to execute a foreach statement. When executing the following statements: ?(things.Select(thing=>thing.Id);) ?(foreach(var thing in things);) I'm getting these errors: Expression cannot

advanced Visual Studio kung-fu test — Calling functions from the Immediate Window during debugging

可紊 提交于 2019-12-12 08:54:33
问题 I see some related questions have been asked, but they're either too advanced for me to grasp or lacking a step-by-step guide from start to finish (most of them end up being insider talk of their own experiment results). OK here it is, given this simple program: #include <stdio.h> #include <string.h> int main() { FILE * f; char buffer[100]; memset(buffer, 0, 100); fun(); f = fopen("main.cpp", "r"); fread(buffer, 1, 99, f); printf(buffer); fclose(f); return 0; } What it does is basically print