On Thu, 2008-03-20 at 11:55 -0700, Aleksandar Donev wrote:
> Hi,
> I am wondering if someone knows of a debugging-type tool where one can run a
> program and can then periodically (at my choice) see where the program
> currently is, i.e., what procedure is currently executing? The important
> thing is to be able to choose when to see the execution trace at will,
> instead of tracing every procedure call.
I use Totalview on Linux. It can break into a running process, even if
it wasn't launched under Totalview, and tell you where it is.
Totalview isn't GPL or otherwise free. I don't do the purchasing for my
department, so I have no idea what it costs. See totalviewtech.com.
We've also inserted a "snooping" capability into our codes. They can
communicate using PVM with an IDL program. This tells us more than
where it is, since we send arrays of data to IDL, which is a much easier
platform on which to do graphical displays of the internal state of our
program (our program is using a Newton method to retrieve atmospheric
constituents; it's informative to watch how the iterations are
converging). MPI ought to work as well.
--
Van Snyder | What fraction of Americans believe
[log in to unmask] | Wrestling is real and NASA is fake?
Any alleged opinions are my own and have not been approved or
disapproved by JPL, CalTech, NASA, the President, or anybody else.
|