update get_debug() to allow frame specification in debug()