added view stack function to the debugger and fixed bug that printed the source code after the debugger finshed executing