Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
80 views

Since recently, I'm working in C++ with COM technology, which means using SAFEARRAY objects. One of the first challenges is seeing the contents of such an object: in the watch-window, such an object ...
Dominique's user avatar
  • 17.6k
2 votes
1 answer
117 views

In a CMake library project I've a class that's basically a wrapper to boost::uuids::uuid: class UUID { public: static bool IsValidUUIDText(std::string_view text); static UUID CreateNull(); ...
Jepessen's user avatar
  • 12.6k
1 vote
0 answers
119 views

I am writing a wrapper class template around a byte storage and I use a constexpr std::array to store the offsets of the members (some can be missing based on the template). The code runs as expected ...
Rex240's user avatar
  • 11
1 vote
0 answers
96 views

Our large code base has a class AnyRef that contains a type-erased reference to some object: struct AnyRef { int type = 0; void* ptr = nullptr; }; For example, if type==1, then ptr is ...
Sedenion's user avatar
  • 6,333
1 vote
1 answer
326 views

I need to implement (integer) exponentiation (valexp) in a Natvis visualizer. My initial instinct to employ recursion <?xml version="1.0" encoding="utf-8"?> <...
IInspectable's user avatar
  • 52.9k
1 vote
1 answer
268 views

The /NATVIS linker option can be used to embed debug visualizers into a PDB. Given a PDB, is there a way to recover all embedded debug visualizers? I'm looking for a first-party tool (like DUMPBIN), ...
IInspectable's user avatar
  • 52.9k
3 votes
1 answer
525 views

I have a type which represents "Battleship" coordinates: struct BattleshipCoordinates { int row; // zero-based row offset int col; // zero-based column offset } Note that the ...
Breealzibub's user avatar
  • 8,107
2 votes
1 answer
298 views

I have some complex Item expressions where the type casts of nested template types are getting quite long and difficult to read. Is it possible to 'store' a type in the Natvis definition for reuse in ...
Samaursa's user avatar
  • 17.4k
0 votes
1 answer
101 views

After reinstalling VS2017 on different folder, when I compile an old project I get an error about a missing natvis file (which now is on a different path). I searched inside the VC++ project files and ...
Elias's user avatar
  • 560
2 votes
0 answers
143 views

Question When writing custom Natvis visualizations for Visual Studio, (how) can I access fields of a lambda wrapped in a std::function? Concrete example I have a class looks somewhat like this (very ...
Robin's user avatar
  • 595
1 vote
0 answers
257 views

I am trying to demonstrate here the approach which I have followed to display two uint32_t * type variable using Natvis. sample.cpp #include<iostream> int main() { uint32_t foo_array[5] = {...
karim's user avatar
  • 701
0 votes
1 answer
193 views

I'm probably just not searching well enough, but its unclear to me how (or if its possible) to specify that the variable should be displayed in a particular way. All the examples are structs or ...
Russ Schultz's user avatar
  • 2,730
0 votes
1 answer
685 views

When I'm debuging in vsCode (on Linux) I want to see what my Eigen::VectorXd actually has in Store. So I tried it with this Eigen.natvis https://github.com/cdcseacave/Visual-Studio-Visualizers/blob/...
Daniel_Schwarzenbach's user avatar
0 votes
1 answer
655 views

I have this struct llist { char code[CODE_SIZE]; ... llist *next; } And my natvis file contains this <Type Name="llist"> <DisplayString>Code ={code,na}</DisplayString&...
Mark Twombley's user avatar
2 votes
0 answers
1k views

I'm using vscode to debug some c++ code, however I cannot inspect any (heap allocated) objects. Like in this example: float arrayStack[10]; for (size_t i = 0; i < 10; i++) { arrayStack[i] = -...
mcExchange's user avatar
  • 6,585
1 vote
1 answer
810 views

My goal is to observe a container of value which is pointed by a pointer. I am recommended to use natvis for this purpose. I am using VSCode to develop my project in Linux system. Unfortunately, I am ...
karim's user avatar
  • 701
1 vote
1 answer
838 views

Say I have a struct struct Foo { void* bar; const char* barTypeName; } bar is some type erased thing and barTypeName is a proper C++ type identifier that identifies the actual type of bar. I ...
Adam's user avatar
  • 11
0 votes
0 answers
130 views

I have lot of register IDs in the application, in order to debug the application I need to know the names of the registers not just the IDs. Is it possible to maintain a map in .natvis file and use ...
Krish's user avatar
  • 21
0 votes
1 answer
640 views

Working with the above std::vectors on Android's NDK. If I define the natvis for std::__ndk1::vector_base as follows <Type Name="std::__ndk1::__vector_base&lt;*&gt;"> ...
Krazer's user avatar
  • 515
2 votes
0 answers
716 views

It is possible to define different views for types specified in natvis files, however i don't know a way to propagate these views through standard containers without modifying or rewriting the ...
jesses's user avatar
  • 631
2 votes
1 answer
260 views

When creating a <DisplayString>{a_char,c}</DisplayString> in a .natvis file, the char is being displayed as f.e. 82 'R' I'm looking for a way to display it as 'R' e.g. without the ...
jesses's user avatar
  • 631
0 votes
1 answer
1k views

I am developing some debug visualizations for my custom classes in VSCode using Natvis. Using CustomListItems with a simple example and I can't get it to work. Basically, I think the following code ...
gopal raghavan's user avatar
2 votes
1 answer
1k views

I'm trying to make debugger visualizer for container that stores values in chunks. I want to make list expansion both for values and for chunks, but as far as I can see single type can have only one ...
Dmitry Teslenko's user avatar
0 votes
2 answers
446 views

Background I'm writing a Visual Studio Extension in C# that executes code in the Immediate Window while debugging another application. The expression returns a value that can be a int, a string ...
lax48's user avatar
  • 372
2 votes
0 answers
176 views

So I have a type, which is used as a key into a map. The key itself isn't particularly human readable (e.g. a 128 bit guid), but the value in the map that this key references, is. Is it possible, ...
Dan Forever's user avatar