The invention discloses a method for
processing Java card debugging information. The method comprises the following steps of: acquiring an instruction, detecting the type of the instruction, if the instruction is an unprocessed setting instruction and an adjuster is a position adjuster, replacing original
byte codes corresponding to position information in a
Java card program running on a
virtual machine by using special bytes, and writing the original
byte codes into an
event list to generate an event serial number; if the adjuster is a single-step adjuster, setting single-step debugging information, and writing an event into the
event list to generate an event serial number; if the instruction is a debugging instruction, acquiring
byte codes of the current
Java card program running on the
virtual machine, and judging whether the byte codes are special byte codes; and if the byte codes are special byte codes, searching the corresponding original byte codes from the
event list, replacing the special byte codes with the original byte codes to obtain returned data, otherwise, when the setting of a single-step debugging mark in the event
list is judged, acquiring the returned data according to the byte codes. The method is convenient to use and is capable of monitoring and checking the debugging process of a
virtual machine in real time.