remove option --debug and update documents
Merge pull request #918 from menghan/remove-deprecated

Remove deprecated option --debug, fix #917