redirect-debugging-output

redirect-debugging-output is an interactive built-in function in `C source code'.


(redirect-debugging-output FILE &optional APPEND)

Redirect debugging output (stderr stream) to file FILE.
If FILE is nil, reset target to the initial stderr stream.
Optional arg APPEND non-nil (interactively, with prefix arg) means
append to existing target file.