Debug information not being printed to file
Posted by Van Glass, Last modified by on 05 June 2007 10:41 PM
When redirecting debug information to a stream or file you may need to set the AutoFlush property of the stream to "true". This will ensure that debug information is flushed to the stream when it becomes available.

e.g. using the Sftp class in SSH Factory for .NET

Jscape.Sftp.Sftp sftp = new Jscape.Sftp.Sftp();
sftp.Debug = true;
System.IO.StreamWriter writer = new System.IO.StreamWriter("[path_to_debug_file]");
writer.AutoFlush = true;
sftp.DebugStream = writer;

(178 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako