The invention discloses a method for debugging an electronic product process script by running an ATS software platform, aiming to provide a method for debugging a process script with high writing efficiency, low software development cost and reduced manual participation. The present invention is realized through the following technical solutions: using an object-oriented method to develop objects and call interfaces for general operations, forming a Chinese keyword set for general operations, writing a debugging process script according to the debugging process framework, and improving the debugging process framework and debugging through iteration Process script; run and debug the process script, load the process sequence, test item set and underlying driver file, analyze the process sequence according to the operation classification, decompose the test sequence into a series of general operation sequences, call the corresponding object and interface function, call the interface and the underlying , Integrate the debugging process with the automatic test system, automatically control the working parameters of physical instruments and physical electronic products, and realize automatic or semi-automatic debugging.