[英]how to inspect a c# (unsafe) pointer variable in visual studio debugger?
the pointer variable only shows as a hex address:指针变量仅显示为十六进制地址:
how to make it expandable for watching the fields and sub-object (as in c++)?如何使其可扩展以观看字段和子对象(如在 C++ 中)?
NOTE: , I have tried both in VS2019 and Visual Studio for Mac , none of them support this.注意:我在VS2019和Visual Studio for Mac 中都试过,但都不支持。 and googled a lot of keywords but there's no any related topics.
并用谷歌搜索了很多关键字,但没有任何相关主题。 wondering is there no one need this feature?
想知道没有人需要这个功能吗?
I did some testing and were always able to extend the pointer info, but i guess you can add a "watch" where you dereference the pointer.我做了一些测试,并且总是能够扩展指针信息,但我想您可以在取消引用指针的地方添加一个“手表”。 so try adding "*ip" to your watch please.
所以请尝试在您的手表上添加“*ip”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.