Debugging with set verbosity level during read and analysis of executable code and associated comments while logging according to set verbosity level
First Claim
Patent Images
1. A computerized method for debugging a computer source code having a plurality of lines of code comprising:
- creating a separate computer source code to hold an annotated source code;
setting a verbosity level to a predetermined level;
traversing through said computer source code by reading and analyzing a portion of said computer source code from a start to an end of said computer source code one portion of said computer source code at a time, said reading and analyzing comprising;
reading said portion of said computer source code, said portion of said computer source code comprising executable statements and comments;
determining if said portion of said computer source code comprises an executable statement;
writing said executable statement to said annotated source code if said portion of said computer source code comprises said executable statement;
reading said verbosity level to determine desired content for said annotated source code;
constructing an output statement comprising said desired content for said executable statement according to said verbosity level, said output statement further comprising commands that write said desired content to a log file;
writing said output statement to said annotated source code; and
repeating said steps of reading and analyzing said portion of said computer source code on a next portion of said computer source code until said end of said computer source code is reached;
causing said annotated source code to be executed in place of said computer source code such that said annotated source code operation is recorded in said log file; and
evaluating said log file to find problems with said computer source code.
8 Assignments
0 Petitions
Accused Products
Abstract
A debugging tool for computer program development that analyzes the computer program adds output statements at strategic locations throughout the program. The output statements may include the filename and line number of the original source code and may further include a listing of the executed command as well as values of certain expressions and/or variables as defined by the requested verbosity. The verbosity may be set at different levels throughout the source code as required.
44 Citations
19 Claims
-
1. A computerized method for debugging a computer source code having a plurality of lines of code comprising:
-
creating a separate computer source code to hold an annotated source code; setting a verbosity level to a predetermined level; traversing through said computer source code by reading and analyzing a portion of said computer source code from a start to an end of said computer source code one portion of said computer source code at a time, said reading and analyzing comprising; reading said portion of said computer source code, said portion of said computer source code comprising executable statements and comments; determining if said portion of said computer source code comprises an executable statement; writing said executable statement to said annotated source code if said portion of said computer source code comprises said executable statement; reading said verbosity level to determine desired content for said annotated source code; constructing an output statement comprising said desired content for said executable statement according to said verbosity level, said output statement further comprising commands that write said desired content to a log file; writing said output statement to said annotated source code; and repeating said steps of reading and analyzing said portion of said computer source code on a next portion of said computer source code until said end of said computer source code is reached; causing said annotated source code to be executed in place of said computer source code such that said annotated source code operation is recorded in said log file; and evaluating said log file to find problems with said computer source code. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A computer program that assists debugging of a computer source code having a plurality of lines of code comprising:
-
a first routine that creates a separate computer source code to hold an annotated source code; a second routine that sets a verbosity level to a predetermined level; a third routine that traverses through said computer source code and reads and analyzes a portion of said computer source code from a start to an end of said computer source code one portion of said computer source code at a time, said reading and analyzing comprising; a first subroutine that reads said portion of said computer source code, said portion of said computer source code being comprised of executable statements and comments; a second subroutine that determines if said portion of said computer source code is comprised of an executable statement; a third subroutine that writes said executable statement to said annotated source code if said portion of said computer source code comprises said executable statement; a fourth subroutine that reads said verbosity level to determine desired contect for said annotated source code; a fifth subroutine that constructs an output statement comprised of said desired content for said executable statement according to said verbosity level, said output statement further comprised of commands that write said desired content to a log file; a sixth subroutine that writes said output statement to said annotated source code; and a seventh subroutine that repeats said reading and analyzing of said portion of said computer source code on a next portion of said computer source code until said end of said computer source code is reached; and wherein said annotated source code may be executed in place of said computer source code such that said annotated source code operation is recorded in said log file and said log file may be evaluated to find problems with said computer source code. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19)
-
Specification