A possibly rather ambitious question: Is it possible in some way (direct or indirect) to access the variables (values or addresses - doesnt matter) during the debugging and send them to my own analysis procedure?
My context is as follows: I am developing a fairly large numerical code for analysis of distributed systems that has many matrix and array variables. During debugging, I would like to be able to check their mathematical properties (eg, eigenvalues, determinant, etc). Similarly for many other variables I would like to be able to check some of their properties during debugging (satisfaction of some conditions, etc) using fairly complicated auxiliary algorithms.
I realize this could be achieved by embedding CALLs to these auxiliary procedures directly into the code, however this is rather cumbersome because I have 100's or more variables that I may be interested during debugging, and not always at the same time. Rebuilding the code everytime I want to examine some variable in more detail is also time-consumming, and so would be developing a system of flags to enable/disable calls to the auxiliary routines.
Moreover once the code is debugged I dont anticipate needing these checks, but expect to need the same debugging approach for future projects.
Given the existence of Watch windows, Array Visualizer, etc, I was wondering if a more flexible option is possible.
In particular, is it possible to apply a "tool" to a highlighted or otherwise "selected" variable in the debugger? Something analogous to array visualizer, where a highlighted variable (or typed into a separate window such as the Watch window) can be sent to a plotting routine. In my case I would just send to my own procedure (available as DLL, or coded via VB, or in any other form because I would have its source)
Some kind of possible option would be to have a Macro that automatically copies/pastes the contents of a variable into a data file to be read by my procedure, but this doesnt work very well for matrices (because rightclick > copy on a mtrix only copies its name, not its contents..)
any comments/advice would be appreciated