Revert "support debugfile switch and global script config"

This reverts commit db015197cace192c025baabf60437f5fae772338.