Your original question was how to stop code execution and enter into debug mode. Why dont you let us know what your really trying to do?