neo-project / neo-debugger

Neo Smart Contract Debugger for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ngd-seattle.neo-contract-debug
MIT License
24 stars 17 forks source link

Data members of a class object are shown as their raw types and not their C# types #142

Open roschler opened 3 years ago

roschler commented 3 years ago

If you add a class object to the debugger, the data members of the class are shown as their raw type instead of their C# data type. Since they are data members you can not cast them to something else like you can with simple variables.

For example a string field is displayed as a ByteString array of hex characters, not as a string and you can't use a (string) cast to show it that wya. It would be very helpful if the debugger could display class objects with their data members values re-interpreted as their C# primitive types, not as the ones underlying the smart contracts implementation code.

devhawk commented 2 years ago

C# info for types is not in the debug info, so this would require significant upgrade to debug info and compilers. A good idea worth pursuing, but not one that can be worked on at this time

devhawk commented 2 years ago

This will be addressed as part of the overall Storage Schema Preview work