Enable debug |
You can enable debug mode using the Debug property. This will send all debug information to Console.Out or DebugStream property.
Example
[C#]
// enable the debug mode
ftp.Debug = true;
// set the debug stream
ftp.DebugStream = File.CreateText("C:\\debug.txt");
ftp.DebugStream.AutoFlush = true;
[Visual Basic]
' enable the debug mode
ftp.Debug = True
' set the debug stream
ftp.DebugStream = File.CreateText("C:\debug.txt")
ftp.DebugStream.AutoFlush = True