Is there any extension or tool available for Visual Studio for plotting of numerical data in debug mode?

StackOverflow https://stackoverflow.com/questions/21881247

문제

I am working with numerical data and I want to plot and analyze arrays and vectors in debug mode. I can plot data using intermediate window by using a third party's library and I am suppose to initialize object responsible of plotting and also I need to call few methods to visualize the data. I want to avoid it because when I have to plot several time then it is not effective. I would like to know that is there any extension or tool available to visualize the numerical data in debug mode.

도움이 되었습니까?

해결책

In a similar vein to the answer from Sergey Vlasov, there is another plugin for Visual Studio called ArrayPlotter that can plot arrays of type byte/short/int/float/double including interleaved and complex arrays.

It doesn't require you to modify the code to call the plotting routine. Any (practically) accessible memory can be treated as an array of the specified type and plotted whilst in a breakpoint in the debugger.

Disclaimer: I wrote the plugin

다른 팁

Try the Array Visualizer extension: "Array Visualizer is a free, open source extension for visual studio. It is designed to display arrays (Jagged and up to 4D) while debugging an application."

I can suggest you an Open source tool I been working on just for the same reason.

HypnoLog can help you log any data from C# and visualize it as you wish. HypnoLog is very flexible tool, you can log any data structure and control its visualization.

Specifically for C# there is already a language wrapper, see HypnoLog-CSharp. And for numerical arrays you can use the built-in visualization plot.

The only thing you need to add to your project is the HypnoLog-CSharp library. By default in C# HypnoLog will log only in Debug mode.

This is how it looks in C#:

HL.Log(new []{1, 2, 3}, "plot");

By the way, HypnoLog can be also used from any other language while using the same visualization.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top