Based on analyzing QF and QS,a software debugging method based on event injection is designed,in this way,the software debugging can be more initiative,more targeted and automatically,this method can improve the efficiency of software debugging.The paper holds certain referential value and practical significance in promoting the development of Quantum Programming.