Enhanced debugger tail command
Fix history generation crash