View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001532||NoesisGUI||C++ SDK||public||2019-08-08 18:13||2019-08-13 12:08|
|Target Version||Fixed in Version|
|Summary||0001532: Feature request: DependencyProperty value support on DependencyObject instances in the debugger|
|Description||Hi guys, this is following on from this feature request: https://www.noesisengine.com/bugs/view.php?id=1440#c5920|
What I'd like is the ability to query the DependencyProperty values directly from the debugger. Ideally, if I'd hover over an instance derived from DependencyObject I'd be able to see all the current values of all the DependencyProperty properties. C# manages this through reflection and the getters. If possible, could we achieve something similar in native C++ by modifying the *.natvis to query the DependencyValue maps to retrieve the value for a particular DependencyObject instance? I've attached 2 images, one from managed C# and the other from native C++ of the output from instanced derived from DepnedencyObejct. Ideally, the native would be able to retrieve the same information that the C# version could return.
Currently, the workaround is to stop the debugger, write a log to retrieve the value, and then rerun the game. This would prevent tonnes of debugging code that I end up writing like the following snippet:
NS_LOG_DEBUG("%s::Visibility = %d", GetName(), GetVisibility());
|Steps To Reproduce||1. Breakpoint any instance derived from DependencyObject in C++|
2. View the this pointer in the watch window.
3. Notice that no DependencyProperty values are displayed.
|Tags||No tags attached.|
|2019-08-08 18:13||steveh||New Issue|
|2019-08-08 18:13||steveh||File Added: native_dependencyproperty_output.png|
|2019-08-08 18:13||steveh||File Added: managed_dependencyproperty_output.png|
|2019-08-13 12:08||jsantos||Assigned To||=> jsantos|
|2019-08-13 12:08||jsantos||Status||new => assigned|