Method for processing Java card debugging information

A technology for debugging information and processing methods, which is applied in the field of Java card debugging information processing, and can solve problems such as lack of pertinence, low efficiency, and difficulty in viewing debugging logs

Active Publication Date: 2013-01-02
FEITIAN TECHNOLOGIES
View PDF3 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method is inefficient and inconvenient to operate. It cannot monitor resource information (such as variable values, etc.) in real time and is not targeted. Especially for general application developers, it is difficult to view such debugging logs.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for processing Java card debugging information
  • Method for processing Java card debugging information
  • Method for processing Java card debugging information

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0089] Embodiment 1 of the present invention provides a method for processing Java card debugging information, such as figure 1 shown, including:

[0090] Step A: Obtain the instruction and detect the instruction type. If it is a setting instruction, execute step B. If it is a debugging instruction, execute step E. If it is other, perform operations according to the instruction;

[0091] In this embodiment, the command obtained can be the command sent by the sending device or the command stored in the command cache; if the format of the command obtained conforms to the first preset format, it is a setting command, if the format of the command conforms to the APDU The format is a debug command;

[0092] Step B1: Analyze the setting instruction according to the preset regulations to obtain the header and data part, analyze the header, and obtain the request ID and request tag from the analysis result of the header of the setting instruction;

[0093] Step B2: Determine whether...

Embodiment 2

[0122] Embodiment 2 of the present invention provides a method for processing Java card debugging information, such as figure 2 shown, including:

[0123] Step 101: Obtain the instruction and detect the instruction type. If it is a setting instruction, execute step 102. If it is a debugging instruction, perform debugging processing. If it is other instructions, perform corresponding operations;

[0124] If it is a setting instruction, before step 101, it also includes: receiving the setting instruction sent by the sending device and storing it in the command cache, and obtaining the instruction in step 101 is: obtaining the setting instruction from the command cache;

[0125] If it is a debugging instruction, the instruction obtained in step 101 is: receiving the debugging instruction sent by the first module;

[0126] In the present embodiment, the type of the detection instruction is realized by the format of the detection instruction; wherein, the debugging instruction is...

Embodiment 3

[0154] The third embodiment is a detailed elaboration of step 108 in the second embodiment, specifically taking the event request command set as an example for illustration, as shown in image 3 with Figure 4 shown, including:

[0155] Step 201: Detect the type of the acquired command set, if it is an event request command set, execute step 202, otherwise operate according to the acquired setting instruction;

[0156] Specifically, in this embodiment, it is judged whether the value of the acquired command set is 15, if yes, it is an event request command set, otherwise it is other command sets, and corresponding operations are performed. Other command sets (such as method command sets, obtaining virtual Virtual machine command set for machine-related information, class command set for obtaining type information, array command set, interface command set, method command set for obtaining function and variable information, variable command set, stack frame command set for obtai...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

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.

Description

technical field [0001] The invention relates to the field of debugging information processing, in particular to a method for processing Java card debugging information. Background technique [0002] Java Card is a smart card that can run Java programs, and is a combination of Java technology and smart card technology. The Java Card program running on the Java Card is called the Java Card Applet, which is the debug object of the source code level debugging platform. After rapid development in recent years, Java Card has been widely used in various fields, especially communication and financial fields. [0003] In the prior art, a method of generating a log is usually used to debug the Java Card program. When the virtual machine is started, a parameter is passed as a mark for the virtual machine to start logging. When the virtual machine is running, the specific debugging symbols in the Java card program, such as functions and call stacks, are printed in the log, using real-...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
Inventor 陆舟于华章
Owner FEITIAN TECHNOLOGIES
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products