working on debugger...
Recodes the way of quitting the simulator. This is a faster way