In Visual Studio for my native C ++ program, I want to get a graph of some variables during debugging. I mainly use the text representation of objects by editing autoexp.dat. But for some variables, it is better to have a graph, and not to matter in text form.
So far I have used the plot(const void* address,const char* type) function plot(const void* address,const char* type) and called it from the Immediate Window, specifying the variable address and type, and internally applying it to the corresponding type.
But this method has two drawbacks:
- Firstly, the overload function almost never works when the function is called from the debugger (therefore, I had to pass the type as the second parameter), and the function call sometimes fails, although it works fine when called from code.
- Secondly, instead of writing a C ++ function to plot, I am interested in having a scripting language (e.g. autoexp.dat or VBScript) to provide the internal data of a C ++ object without writing any wrapper so that I can use a script to store data in a file or plotting.
In general, I am interested in having something like Matlab or Ch IDE, where I can display a certain variable from the outside when the program is on a debug break.
c ++ debugging visual-studio-2008 visual-studio
abir
source share