safe_debug_print added (moved from tinfra-sandbox)
safe_debug_print_test: increase code coverage