The invention relates to a
software code debugging technology, discloses a method for
software debugging by using a code template technology, and aims to solve the problems that a
software debugging tool supports too few
programming languages and is not uniform in debugging means. Code templates are respectively adapted to different high-level languages for debugging, so that the supported
programming languages are dozens of types, a unified debugging means is provided for the debugging of each
programming language, breakpoints can be lowered, detailed code tracks can be output, so that collapse,
crash and logic errors can be easily and accurately positioned, different assignments of variables can be completely recorded, code
resource management can be tracked, and the debugging efficiency is improved. According to the method, time consumption statistics can be conducted on each line of codes, a unified debugging means can be provided for a single-
chip microcomputer, an
operating system kernel, a driver, an embedded type and the like through
serial port terminals, numerous programming languages are supported, a unified debugging means is provided for debugging of the programming languages, and the
software debugging technology is enriched.