Information processing apparatus and method of acquiring trace log
First Claim
1. An information processing apparatus including one or more processors configured to perform a procedure, the procedure comprising:
- executing a program including a log acquisition command having set therein identification information on a file describing a source code of the program, version number information on the source code, a variable, and a line number of a line describing the log acquisition command in the source code;
acquiring a value of the variable set in the log acquisition command when the log acquisition command has reached a stage of execution;
generating a trace log including the identification information on the file and the version number information set in the log acquisition command in the stage of execution, the value of the acquired variable, and the line number included in the log acquisition command in the stage of execution; and
storing the trace log in a storage device.
1 Assignment
0 Petitions
Accused Products
Abstract
In an information processing apparatus, a program execution section executes a program, and in the stage of execution of a log acquisition command, acquires the value of a variable set in the log acquisition command. A trace log generation section generates a trace log including identification information on a file set in the log acquisition command, version number on a source code, and the acquired value of the variable, and stores the trace log in a storage device. A source code acquisition section acquires a source code corresponding to a combination of the identification information and the version number, based on the trace log. A character string addition section extracts a character string related to the value of the variable included in the trace code, from the acquired source code, adds the extracted character string to the trace log, and stores the trace log in a storage device.
-
Citations
11 Claims
-
1. An information processing apparatus including one or more processors configured to perform a procedure, the procedure comprising:
-
executing a program including a log acquisition command having set therein identification information on a file describing a source code of the program, version number information on the source code, a variable, and a line number of a line describing the log acquisition command in the source code; acquiring a value of the variable set in the log acquisition command when the log acquisition command has reached a stage of execution; generating a trace log including the identification information on the file and the version number information set in the log acquisition command in the stage of execution, the value of the acquired variable, and the line number included in the log acquisition command in the stage of execution; and storing the trace log in a storage device.
-
-
2. An information processing apparatus including one or more processors configured to perform a procedure, the procedure comprising:
-
acquiring, based on a trace log including identification information on a file describing a source code of a program, version number information on the source code, a value of a variable, and a line number of a line describing a log acquisition command in the source code, the source code corresponding to a combination of the identification information on the file and the version number information; extracting from the log acquisition command described on the line, which is indicated by the line number included in the trace log, in the source code acquired based on the trace log, a character string related to the trace log; adding the extracted character string to the trace log; and storing the trace log having the character string added thereto, in a storage device. - View Dependent Claims (3, 4, 5, 6, 7, 8, 9)
-
-
10. A method of acquiring a trace log, the method comprising:
-
a first procedure executed by a first information processing apparatus, comprising; executing a program including a log acquisition command having set therein identification information on a file describing a source code of the program, version number information on the source code, a variable, and a line number of a line describing the log acquisition command in the source code; acquiring, when the log acquisition command has reached a stage of execution, a value of the variable set in the log acquisition command in the stage of execution; generating a trace log including the identification information on the file and the version number information set in the log acquisition command in the stage of execution, the acquired value of the variable, and the line number included in the log acquisition command in the stage of execution; and storing the generated trace log in a first storage device; and a second procedure executed by a second information processing apparatus, comprising; acquiring, based on the trace log stored in the first storage device, the source code corresponding to the combination of the identification information on the file and the version number information included in the trace log; extracting from the log acquisition command described on the line, which is indicated by the line number included in the trace log, in the source code acquired based on the trace log, a character string related to the trace log; adding the extracted character string to the trace log; and storing the trace log having the character string added thereto, in a second storage device. - View Dependent Claims (11)
-
Specification