Fixed debug enable statement, closes #1403.
Merge pull request #1433 from cmfcmf/debug-fix

Fixed debug enable statement, closes #1403.