如何在调试过程中可视化 Visual Studio 2010 中 Graphics 变量的内容?
我正在为我的应用程序开发渲染引擎,需要在调试会话期间可视化 Graphics 对象。 我查看了 VS2010 的图像可视化工具,例如 this 或 this,但它们仅可视化图像对象,而我需要图形。这里有什么解决方案吗?
问候, 亚历山大.
I am working on a rendering engine for my application and need to visualize the Graphics object during the debug session.
I looked at Image Visualizers for VS2010, like this or this, but they visualize only the Image objects, whereas I need the Graphics. What could be a solution here?
Regards,
Alexander.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我终于自己弄清楚了。
要在 VS2010 中启用
Graphics
变量的可视化,请执行以下操作:将 DLL 复制到以下位置:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Packages\Debugger\Visualizers
-或-
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Packages\Debugger\Visualizers
取决于您的系统架构。
您不必重新启动 VS2010,只需运行调试会话,当您将鼠标光标悬停在变量上时,您会在变量类型名称的左侧看到一个小放大镜标志。单击此标志,您将看到在新窗口中打开 Graphics 对象的内容。
I finally figured it out on my own.
To enable the visualisation of
Graphics
variables in VS2010 do the following:Copy the DLL to the following location:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Packages\Debugger\Visualizers
-or-
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Packages\Debugger\Visualizers
depending upon your system architecture.
You don't have to restart VS2010, just run a debugging session and you'll see a small magnifying glass sign just to the left of the variable type name when you hover with you mouse cursor over your variable. Click this sign and you'll see the content of your Graphics object opened in a new window.