在 Visual Studio 调试器中显示二维数组

发布于 2024-10-10 19:35:05 字数 265 浏览 0 评论 0原文

我正在使用 Visual Studio 2005,并且有一个 2D 数组(例如 my2Dvar),我希望在运行时查看其值。我希望将这些值导出到 Matlab 中。我尝试在立即窗口中使用 ?my2DVar 显示值。但这些值未正确显示(数组的元素显示为 {...})。我可以将鼠标悬停在变量上并展开小加号,这些加号似乎会查看各个条目,但数组太大,无法对所有条目执行此操作。

问题:有没有办法将二维数组的值导出到其他平台可以轻松读取的文件中?我将不胜感激任何帮助。感谢您抽出时间。

I am working with Visual Studio 2005 and have a 2D array (say my2Dvar) that I would like to see the values of during run time. I am looking to export these values into Matlab. I tried displaying the values using ?my2DVar in the immediate window. But the values aren't displayed properly (the elements of the array show up as {...}). I can hover the mouse over the variable and expand the small plus signs that appears to look at the individual entries but the array is too big for me to do this for all entries.

Question: Is there a way to export the values of the 2D-array to a file from which it can be easily read by other platforms? I would appreciate any help. Thanks for your time.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱你不解释 2024-10-17 19:35:05

如果 Visual Studio 的默认数据可视化工具不处理您的自定义数据类型,您可以 为 Visual Studio 编写自己的可视化工具

If Visual Studio's default data visualizers aren't handling your custom data types, you can write your own visualizers for Visual Studio

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文