# US 12,007,872 B2 · Debugging assistance system and debugging assistance method

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 12,007,872 B2
- Document ID: US12007872B2
- Status: Granted
- Kind: B2
- Application number: 17/427,166
- Filed: 2020-01-17
- Published: 2022-03-31
- Granted: 2024-06-11
- Earliest claimed: 2019-01-31
- Assignees: Nippon Telegraph and Telephone Corporation
- Applicants: Nippon Telegraph and Telephone Corporation
- Inventors: Hidetaka Koya; Hajime Nakajima; Takeshi Masuda
- Web page: https://patentgrep.com/patent/US12007872B2

## CPC

- G06F 11/3624: {by performing operations on the source code, e.g. via a compiler}
- G06F 11/36: Prevention of errors by analysis, debugging or testing of software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A debug information abstraction unit (32) of a proxy server (30) adds, when a predetermined rule of an extension program is embodied into a program, a program for outputting debug information regarding the predetermined rule to the embodied program. Then, a debug information transmission unit (41b) of a terminal device (40) transmits, to a debug support device (10), the debug information regarding the predetermined rule for which the program has been added.

## Claims

### Claim 1

A debug support system for debugging a webpage extension program being used in a web page, comprising:
an abstraction unit, including one or more processors, configured to, when a predetermined rule of the webpage extension program is inserted into a webpage program of the web page, generate a first script for outputting debug information regarding the predetermined rule and add the first script to a second script of the webpage program;
a transmission unit, including one or more processors, configured to transmit, to an external device, the debug information regarding the predetermined rule; and
a test page generation unit, including one or more processors, configured to:
obtain (i) a first text of the web page and (ii) a respective second text of each respective frame in one or more frames of the web page;
for each of the first text and the second texts, store the respective text in a respective file that has a respective unique file name;
search the first text and the second texts for attribute values indicating Uniform Resource Identifiers (URIs) and update at least one of the first text and the second texts by replacing each of the URIs in the first text and second texts with one of the unique file names; and
after updating at least one of the first text and the second texts, generate text for a test page using the first text and second texts; and
a test execution unit, including one or more processors, configured to apply the predetermined rule of the webpage extension program to the test page,
wherein when a setting item of the predetermined rule of the webpage extension program is embodied into the webpage program, the abstraction unit is configured to generate the first script for outputting, as the debug information, at least information indicating the start and end of reflection of the setting item, information regarding a parameter input for the setting item, exception information indicating a case where reflection of the setting item is failed, and an identifier that uniquely specifies the setting item.

### Claim 2 (depends on 1)

The debug support system according to claim 1, further comprising
a page comparing unit, including one or more processors, configured to:
search selector information of the predetermined rule of the webpage extension program in the text of the test page; and
in response to not finding the selector information in the text of the test page, display an alert.

### Claim 3 (depends on 1)

The debug support system of claim 1, wherein applying the predetermined rule of the webpage extension program to the test page comprises;
generating a replaced rule from the predetermined rule by replacing a URI of the web page in a condition included in the predetermined rule with the URI of the test page;
activating a web browser to display the test page; and
applying the replaced rule to the test page displayed on the web browser.

### Claim 4

A debug support method for debugging a webpage extension program being used in a web page, the debug support method comprising:
when a predetermined rule of the webpage extension program is inserted into a webpage program of the web page, generating a first script for outputting debug information regarding the predetermined rule and adding the first script to a second script of the webpage program;
transmitting, to an external device, the debug information regarding the predetermined rule;
obtaining (i) a first text of the web page and (ii) a respective second text of each respective frame in one or more frames of the web page;
for each of the first text and the second texts, storing the respective text in a respective file that has a respective unique file name;
searching the first text and the second texts for attribute values indicating Uniform Resource Identifiers (URIs) and updating at least one of the first text and the second texts by replacing each of the URIs in the first text and second texts with one of the unique file names; and
after updating at least one of the first text and the second texts, generating text for a test page using the first text and second texts; and
applying the predetermined rule of the webpage extension program to the test page,
wherein
when a setting item of the predetermined rule of the webpage extension program is embodied into the webpage program, generating the first script for outputting, as the debug information, at least information indicating the start and end of reflection of the setting item, information regarding a parameter input for the setting item, exception information indicating a case where reflection of the setting item is failed, and an identifier that uniquely specifies the setting item.

### Claim 5 (depends on 4)

The debug support method according to claim 4, further comprising:
searching selector information of the predetermined rule of the webpage extension program in the text of the test page; and
in response to not finding the selector information in the text of the test page, displaying an alert.
