macports error reporting, stack traces
Jordan K. Hubbard
jkh at apple.com
Sun Nov 8 19:13:02 PST 2009
On Nov 8, 2009, at 10:03 AM, Jeremy Lavergne wrote:
> Should we add the typical steps for producing debug error logs to the output of the standard trace during a failure?
That certainly sounds like something that should be documented, though one would almost wish to then render that documentation obsolete by dumping debug output on error. In other words, ui_debug would always generate debug information, the Debug flag merely indicating what the output fd was. If not set, it's set to some temporary file which has already been unlinked (the open, unlink truck) but has a fd that can be rewound and copied to stderr on error, and if it's set then the fd points directly to stderr. Whatever routine catches errors for a port build would be responsible for dumping the error log. Sounds like an excellent Tcl / MacPorts base beginner's project. :)
- Jordan
More information about the macports-dev
mailing list