![]() When the visualizer is installed, you won't see it have any effect and will realize it's not being called for vectors. ![]() This is important when implementing the visualizer's GetSupportedType() method which returns the type name.įor example, you may want to register a visualizer for a vector, and use the typename "std::vector". ![]() In fact, it works exactly the same as Delphi: the only trick to be aware of is that sometimes a C++ template has more parameters than you may be aware of. In 10.2.1, we have introduced support for registering a visualizer for C++ templates. The visualizer would never fire because there would be no type in the compiled app named "MyTemplate" - it would be a specific instantiation, such as MyTemplate. In previous versions, as with generics, there was no way to register a visualizer for "MyTemplate". ![]() You register a debug visualiser for a type, so all variables of that type, and optionally descendants of that type, go through your visualiser. ![]() A few weeks ago, I wrote about how RAD Studio 10.2.1 supports debug vizualizers for Delphi generics:ĭebug visualisers are a type of IDE plugin that allows you to change the display of a variable in the various debug windows (Local Variables, Watches, Inspector, and Evaluate/Modify.) For example, the TDateTime visualiser takes the double value that represents time and instead displays that time converted to a string. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |