microsoftfeedback / WinDbg-Feedback

Public issue and feedback tracking for WinDbg Preview.
Creative Commons Attribution 4.0 International
49 stars 12 forks source link

natvis for std::function doesn't display address directly #129

Open JeffMill opened 1 year ago

JeffMill commented 1 year ago
0:000> dx f
f                : stdfunction!@ILT+12720(?sum@@YANNN@Z)+0x0 [Type: std::function<double __cdecl(double,double)>]
    [<Raw View>]     [Type: std::function<double __cdecl(double,double)>]
    [functor]        : 0x7ff6c1d741b5 : stdfunction!@ILT+12720(?sum@@YANNN@Z)+0x0 [Type: double (__cdecl*)(double,double)]

function is among a whole bunch of other unhelpful objects. Would be nice if the natvis showed the function without expanding.

lzybkr commented 7 months ago

We use the natvis file provided by Visual C++, so unless Visual Studio does a better job rendering, you should provide feedback via https://developercommunity.visualstudio.com/cpp