Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Accept optional debug with constructor parameter object #87

timburgess opened this Issue · 0 comments

1 participant


Enable the constructor to accept an optional debug parameter. e.g.

var Ftp = new JSFtp({
    host: "",
    port: 21,
    user: "user",
    pass: "1234",
    debug: console.log

The presence of the debug opt would result in debug statements being output to console.log.

As a constructor parameter, this would make it very easy to extend upstream code so that an end-user with comms problems could set a checkbox to "output debug". The debug output would provide extensive detail in order to help troubleshoot their problem.

@sergi sergi closed this in 0a0d263
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.