可视化调试几何对象 [英] Visual Debugger for Geometric Objects

查看:210
本文介绍了可视化调试几何对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在表示几何对象我的图书馆工作时,调试目前看起来是这样的:





下面我查看局部变量在汽车当地人手表立即窗口。



由于我有麻烦想象在我的脑海中物体的形状,我宁愿一个图形组件来表示这些对象。因此,我已开始创建一个调试器可视化工具来绘制对象。我有它在 公开回购。



现在我无法得到它的控制台应用程序我在与它的解决方案之外工作。什么?我做错了。



下面是个什么样子时,它的工作原理是:





另外,我怎么能做到这一点的的方式,可以让我一次查看多个对象。我意识到,我真的希望看到的,而不是只是单个对象多个对象和它们之间的相互作用。 (例如寻找交叉点等等)。



P.S。



有没有人见过的调试器扩展这样的地方?或有如何解决我当前有什么建议?



我在没有成功一个Visual Studio扩展的形式以及尝试这一点。 详细信息请参见的这个问题。


< DIV CLASS =h2_lin>解决方案

为你一个可能的选择是下载从



编译的DLL

图形调试器可视



和他们解压缩到您Debugger\Visualizers文件夹。喜欢的地方



C:\Program文件(x86)\Microsoft的Visual Studio 12.0\Common7\Packages\Debugger\Visualizers\



然后重新启动您的Visual Studio。只要一旦开始调试,你会看到图形调试器符号$ B $旁边,在我前面提到的CodeProject上的解决方案中描述的图形变量的运行时间值b。



更新1:
我也强烈建议你看看下面的博客里S.Ullah自定义的Visual Studio展示台笔者演示了如何创建一个可视化工具在内存显卡



定制Visual Studio的可视化



有使用被称为市售产品的鼹鼠但它已不再适用于新买家(我不知道为什么)


When working on my library representing geometric objects, Debugging currently looks like this:

Here I am viewing the local variables in the Autos, Locals, Watch and Immediate windows.

As I have trouble imagining the shape of the object in my mind, I would prefer a graphical component to represent these objects. So I have started creating a Debugger Visualizer to draw the objects. I have it in a public repo on bitbucket here.

Right now I cannot get it to work outside of the Console Application I have in the solution with it. What am I doing wrong?

here is what it looks like when it works:

Also, How can I do this in a way that will allow me to view multiple objects at a time. I realized that I really want to see multiple objects and their interactions, instead of just the single objects. (e.g Look for intersections and such).

P.S.

Has anyone seen a debugger extension anywhere like this? or have any suggestions of how I can fix my current one?

I have attempted this in the form of a Visual Studio Extension with no success as well. See this question for more details.

解决方案

One possible option for you would be downloading the compiled DLL from

Graphics Debugger Visualizer

and decompressing them into your Debugger\Visualizers folder. Somewhere like

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Packages\Debugger\Visualizers\

Then restart your visual Studio. As soon soon you start debugging you will see Graphic debugger sign next to the run-time value of the Graphics variable as described in the codeproject solution I mentioned earlier.

Update 1: I also highly recommend you to have a look at the following blog where S.Ullah the author of Custom Visual Studio Visualizer illustrates how to create a visualizer for in memory graphics:

Custom Visual Studio Visualizer

There used to be commercially available product called Mole however it is no longer available for new buyers(I don't know why)

这篇关于可视化调试几何对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆