For testing the product or trying out various configuration options, SFTPPlus can be launched in debug mode.
While running in debug mode, the service will remain attached to the console and will output all logging entries to the console.
Note
When executed in debug mode, the server will send log files to the opened console as well as any other logging facility, unless configured otherwise.
The server can be started in debug mode by using the -d command argument of the bin/admin-commands.sh command located in the SFTPPlus installation folder.
To close the debug instance, press Ctrl+C.
For example, call the server as:
bin/admin-commands.sh debug
The product can be started in debug mode by using the service-debug.bat file located in the SFTPPlus installation folder.
To close the debug instance, press Ctrl+C or close the command prompt window.
The SFTP service can be configured to delay execution of a folder listing or file reading and writing command.
Since these options are not intended to be used in production, they are not visible in the normal configuration file.
To enable or change the delay, you will need to change the following values at the end of the INSTALL_PATH/lib/python2.5/chevah/server/commons/constants.py file.
To disable the delay, set the values as:
TEST_DELAY_EXECUTION = {
'open_folder': 0, # Used for folder listing operations.
'open_file': 0, # Used for file read and write operations.
}
To enable a delay of 30 seconds for listing folder and a delay of 20 second for reading and writing files, set the values as:
TEST_DELAY_EXECUTION = {
'open_folder': 30, # Used for folder listing operations.
'open_file': 20, # Used for file read and write operations.
}