Visual Debugger for Geometric Objects

喜夏-厌秋 提交于 2019-12-12 08:25:25

问题


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.


回答1:


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)



来源:https://stackoverflow.com/questions/26105685/visual-debugger-for-geometric-objects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!