Merging the pre 2.0 version from master
New method 'debug_echo'