ignore Format Specifiers in Visualizers ()

Sysprogs forums Forums VisualGDB ignore Format Specifiers in Visualizers ()

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10257
    viktor
    Participant

    VisualGDB ignore Format Specifiers
    sample code:

    #include "stdafx.h"
    namespace winscard {
    	using byte = unsigned char;
    	class StatusWord {
    	public:
    		byte sw1;
    		byte sw2;
    	public:
    		constexpr StatusWord(byte sw1, byte sw2) :sw1(sw1), sw2(sw2) {
    		}
    		constexpr StatusWord() : StatusWord(0, 0) {
    		}
    	};
    }
    
    int main()
    {
    	winscard::StatusWord status(0x90, 00);
    	printf("%d\n", status.sw1);
        return 0;
    }

    my natfis file:

    <?xml version="1.0" encoding="utf-8"?>
    <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
      <Type Name="winscard::StatusWord">
        <DisplayString>{(sw1 * 0x100)+sw2,c}</DisplayString>
      </Type>
    </AutoVisualizer>

    VisualStudio + Win32 project:
    Win32 project

    VisualStudio + VisualGDB:
    VisualGDB

    #10262
    support
    Keymaster

    Thanks for reporting this, we have improved our support for format specifiers in this build: http://sysprogs.com/files/tmp/VisualGDB-5.2.14.1370.msi

    #10286
    viktor
    Participant

    Thank you

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.