| Version 1.9 Build 1556
|
|
Up: How to Write an AIPS++ Application
Previous: Testing Your Application
At present, the tasking system offers two things that might aid you in
debugging:
- defaultservers.trace(T)
- If you type this in Glish, the glish values that are actually
transferred back and forth over the Glish bus will be traced as
log messages from both the Glish and C++ side of the connection.
Also, the priority for display of log messages is lowered to
DEBUGGING level.
- defaultservers.suspend(T)
- If you type this in Glish, every time a new server (i.e., binary
executable) is started up, it will print the pid and suspend the
client as described in Section 10.2.1 of the Glish(2.6) manual to
allow you to more readily attach a debugger to it. Note that after
you attach to the binary, you need to set the ``suspend'' variable
to ``0'' in the C++ executable. (With the sun native compiler when you
attach you are at the right level, with g++ you need to go ``up''
the stack two levels first).
Of course entering F instead of T in the above will turn
off that debugging option.
Let us know of any other system debugging support that might be useful
to you.
Up: How to Write an AIPS++ Application
Previous: Testing Your Application
  Contents
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc.,
Washington, D.C.
Return to AIPS++ Home Page
2006-10-15