简体   繁体   English

如何在 Visual Studio 调试器中检查 ac#(不安全)指针变量?

[英]how to inspect a c# (unsafe) pointer variable in visual studio debugger?

the pointer variable only shows as a hex address:指针变量仅显示为十六进制地址:

VS 调试器

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.注意:我在VS2019Visual 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.

相关问题 使用C#和XNA在Visual Studio中出现Stackoverflow错误。 如何检查堆栈? - Stackoverflow error in Visual Studio with C# and XNA . How to inspect the stack? 如何在Visual Studio 2003中检查调试器中的XML流 - How to inspect XML streams from the debugger in Visual Studio 2003 如何在C#中将不安全的指针传递给FileStream - How to pass unsafe pointer to FileStream in C# 如何在C#Visual Studio调试器中显示1000分隔符 - How to display 1000 separator in C# Visual Studio debugger 用于C#的Visual Studio调试器的乘法问题 - Multiplication issue with Visual Studio debugger for C# C#类变量问题,不安全/固定的指针分配 - C# Problem with class variable, unsafe/fixed pointer assignment 如何使用 Visual Studio 2017 调试器准确判断哪行代码更改了 C# 中的给定变量? - How can I tell exactly what line of code changes a given variable in C# with the Visual Studio 2017 debugger? C#不安全指针字段 - C# unsafe pointer fields 使用Visual Studio 2017构建SSDT项目时如何将/ unsafe标志传递给C#编译器 - How to pass the /unsafe flag to the C# compiler when building an SSDT Project with Visual Studio 2017 如何在C#中的不安全块中声明指向类对象的指针 - How to declare a pointer to a class object in an unsafe block in C#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM