# US 2003/0079159 A1 · Mechanism for debugging a computer process

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

- Number: US 2003/0079159 A1
- Document ID: US20030079159A1
- Status: Published application
- Kind: A1
- Application number: 10/035,897
- Filed: 2001-10-18
- Published: 2003-04-24
- Earliest claimed: 2001-10-18
- Assignees: Sun Microsystems, Inc.
- Inventors: Ronald A. Ten-Hove; Matthew D. Birder
- Web page: https://patentgrep.com/patent/US20030079159A1

## CPC

- G06F 11/362: Debugging of software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A mechanism for debugging a transformation document is disclosed, wherein a debugging mechanism interacts with a user interface to enable a user to specify one or more breakpoints. The user may specify a breakpoint at a particular location in the transformation document or a source document. In addition, the user may specify one or more breakpoints using an expression, or based upon XSL messages. In addition to interacting with the user interface, the debugging mechanism also interacts with a transformation processor, which is the mechanism that actually processes the source and transformation documents to derive a result document. Before and after each processing action, the transformation processor sends a pre-action and a post-action message, respectively, to the debugging mechanism. The debugging mechanism uses the information in these messages to determine whether a breakpoint has been reached. If a breakpoint has been reached, then processing of the documents is halted until further instruction is received from the user. In this manner, the user is able to see intermediate processing results, which aids in debugging the transformation document.

## Claims

### Claim 1

A computer implemented method for debugging a computer process, comprising:
receiving a message from a processor implementing a computer process, said message referencing context information pertaining to a particular action in said computer process;
accessing breakpoint information specifying one or more breakpoints;
determining based upon said context information and said breakpoint information whether a breakpoint has been reached; and
in response to a determination that a breakpoint has been reached, precluding said processor from continuing with said computer process.

### Claim 2 (depends on 1)

The method of claim 1, wherein precluding said processor from continuing with said computer process is achieved without altering said computer process.

### Claim 3 (depends on 1)

The method of claim 1, wherein said message is sent by said processor prior to execution of said particular action.

### Claim 4 (depends on 1)

The method of claim 1, wherein said message is sent by said processor after execution of said particular action.

### Claim 5 (depends on 1)

The method of claim 1, wherein said message is sent by said processor upon failure to perform said particular action.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
receiving user input indicating that said computer process should resume; and
instructing said processor to continue with said computer process.

### Claim 7 (depends on 1)

The method of claim 1, wherein said processor is a transformation processor for processing a transformation document and a source document to derive a result document, and wherein said computer process is a transformation process.

### Claim 8 (depends on 7)

The method of claim 7, wherein precluding said processor from continuing with said computer process is achieved without altering said transformation document.

### Claim 9 (depends on 7)

The method of claim 7, wherein said context information comprises:
an indication of a portion of said transformation document that is giving rise to said particular action, and context information pertaining to said portion.

### Claim 10 (depends on 9)

The method of claim 9, wherein said breakpoint information comprises a breakpoint specification directed to said transformation document, and wherein determining whether a breakpoint has been reached comprises:
determining, based upon said breakpoint specification and said context information pertaining to said portion, whether one or more criteria specified in said breakpoint specification has been met.

### Claim 11 (depends on 10)

The method of claim 10, wherein said breakpoint specification comprises a locational breakpoint that specifies a particular location in said transformation document.

### Claim 12 (depends on 10)

The method of claim 10, wherein said breakpoint specification comprises a conditional breakpoint specification that specifies one or more conditions to be met.

### Claim 13 (depends on 10)

The method of claim 10, wherein said breakpoint specification comprises an Xpath expression.

### Claim 14 (depends on 7)

The method of claim 7, wherein said context information comprises:
an indication of a portion of said source document that is a subject of said particular action, and context information pertaining to said portion.

### Claim 15 (depends on 14)

The method of claim 14, wherein said breakpoint information comprises a breakpoint specification directed to said source document, and wherein determining whether a breakpoint has been reached comprises:
determining, based upon said breakpoint specification and said context information pertaining to said portion, whether one or more criteria specified in said breakpoint specification has been met.

### Claim 16 (depends on 15)

The method of claim 15, wherein said breakpoint specification comprises a locational breakpoint that specifies a particular location in said source document.

### Claim 17 (depends on 15)

The method of claim 15, wherein said breakpoint specification comprises a conditional breakpoint specification that specifies one or more conditions to be met.

### Claim 18 (depends on 15)

The method of claim 15, wherein said conditional breakpoint specification comprises an Xpath expression.

### Claim 19 (depends on 7)

The method of claim 7, further comprising:
receiving a processing message from said processor;
in response to said processing message, granting a user an opportunity to terminate or to continue with said computer process;
receiving an indication from the user that the user wishes to continue with said computer process in spite of said processing message; and
instructing said processor to continue with said computer process.

### Claim 20 (depends on 19)

The method of claim 19, wherein said processing message comprises an XSL message.

### Claim 21

A computer readable medium comprising instructions which, when executed by one or more processors, cause the one or more processors to debug a computer process, said computer readable medium comprising:
instructions for causing one or more processors to receive a message from a processing mechanism implementing a computer process, said message referencing context information pertaining to a particular action in said computer process;
instructions for causing one or more processors to access breakpoint information specifying one or more breakpoints;
instructions for causing one or more processors to determine based upon said context information and said breakpoint information whether a breakpoint has been reached; and
instructions for causing one or more processors to preclude, in response to a determination that a breakpoint has been reached, said processing mechanism from continuing with said computer process.

### Claim 22 (depends on 21)

The computer readable medium of claim 21, wherein precluding said processing mechanism from continuing with said computer process is achieved without altering said computer process.

### Claim 23 (depends on 21)

The computer readable medium of claim 21, wherein said message is sent by said processing mechanism prior to execution of said particular action.

### Claim 24 (depends on 21)

The computer readable medium of claim 21, wherein said message is sent by said processing mechanism after execution of said particular action.

### Claim 25 (depends on 21)

The computer readable medium of claim 21, wherein said message is sent by said processing mechanism upon failure to perform said particular action.

### Claim 26 (depends on 21)

The computer readable medium of claim 21, further comprising:
instructions for causing one or more processors to receive user input indicating that said computer process should resume; and
instructions for causing one or more processors to instruct said processing mechanism to continue with said computer process.

### Claim 27 (depends on 21)

The computer readable medium of claim 21, wherein said processing mechanism is a transformation processor for processing a transformation document and a source document to derive a result document, and wherein said computer process is a transformation process.

### Claim 28 (depends on 27)

The computer readable medium of claim 27, wherein precluding said processing mechanism from continuing with said computer process is achieved without altering said transformation document.

### Claim 29 (depends on 27)

The computer readable medium of claim 27, wherein said context information comprises:
an indication of a portion of said transformation document that is giving rise to said particular action, and context information pertaining to said portion.

### Claim 30 (depends on 29)

The computer readable medium of claim 29, wherein said breakpoint information comprises a breakpoint specification directed to said transformation document, and wherein said instructions for causing one or more processors to determine whether a breakpoint has been reached comprises:
instructions for causing one or more processors to determine, based upon said breakpoint specification and said context information pertaining to said portion, whether one or more criteria specified in said breakpoint specification has been met.

### Claim 31 (depends on 30)

The computer readable medium of claim 30, wherein said breakpoint specification comprises a locational breakpoint that specifies a particular location in said transformation document.

### Claim 32 (depends on 30)

The computer readable medium of claim 30, wherein said breakpoint specification comprises a conditional breakpoint specification that specifies one or more conditions to be met.

### Claim 33 (depends on 30)

The computer readable medium of claim 30, wherein said breakpoint specification comprises an Xpath expression.

### Claim 34 (depends on 27)

The computer readable medium of claim 27, wherein said context information comprises:
an indication of a portion of said source document that is a subject of said particular action, and context information pertaining to said portion.

### Claim 35 (depends on 34)

The computer readable medium of claim 34, wherein said breakpoint information comprises a breakpoint specification directed to said source document, and wherein said instructions for causing one or more processors to determine whether a breakpoint has been reached comprises:
instructions for causing one or more processors to determine, based upon said breakpoint specification and said context information pertaining to said portion, whether one or more criteria specified in said breakpoint specification has been met.

### Claim 36 (depends on 35)

The computer readable medium of claim 35, wherein said breakpoint specification comprises a locational breakpoint that specifies a particular location in said source document.

### Claim 37 (depends on 35)

The computer readable medium of claim 35, wherein said breakpoint specification comprises a conditional breakpoint specification that specifies one or more conditions to be met.

### Claim 38 (depends on 35)

The computer readable medium of claim 35, wherein said conditional breakpoint specification comprises an Xpath expression.

### Claim 39 (depends on 27)

The computer readable medium of claim 27, further comprising:
instructions for causing one or more processors to receive a processing message from said processing mechanism;
instructions for causing one or more processor to grant, in response to said processing message, a user an opportunity to terminate or to continue with said computer process;
instructions for causing one or more processors to receive an indication from the user that the user wishes to continue with said computer process in spite of said action failure; and
instructions for causing one or more processors to instruct said processing mechanism to continue with said computer process in spite of said action failure.

### Claim 40 (depends on 39)

The computer readable medium of claim 39, wherein said processing message comprises an XSL message.

### Claim 41

A computer system, comprising:
a user interface for receiving input from and providing output to a user, said user interface receiving a plurality of breakpoint specifications from the user;
a debugging mechanism operatively coupled to said user interface, said debugging mechanism enforcing breakpoints specified by said breakpoint specifications; and
a processor operatively coupled to said user interface and said debugging mechanism, said processor implementing a computer process comprising a plurality of actions;
wherein said processor sends a message to said debugging mechanism pertaining to a particular action in said computer process, said message referencing context information pertaining to said particular action; and
wherein said debugging mechanism, in response to said message, determines based upon said breakpoint specifications and said context information whether a breakpoint has been reached, and in response to a determination that a breakpoint has been reached, said debugging mechanism precluding said processor from continuing with said computer process.

### Claim 42 (depends on 41)

The system of claim 41, wherein said processor sends said message prior to executing said particular action.

### Claim 43 (depends on 41)

The system of claim 41, wherein said processor sends said message after executing said particular action.

### Claim 44 (depends on 41)

The system of claim 41, wherein said processor, after sending said message, waits for an instruction from said debugging mechanism to continue before continuing with said computer process.

### Claim 45 (depends on 44)

The system of claim 44, wherein said debugging mechanism precludes said processor from continuing with said computer process by not instructing said processor to continue with said computer process.

### Claim 46 (depends on 41)

The system of claim 41, wherein said processor is a transformation processor for processing a transformation document with a source document to derive a result document, and wherein said computer process is a transformation process.

### Claim 47 (depends on 46)

The system of claim 46, wherein said user interface, in response to a determination that a breakpoint has been reached, displays and indicates to the user what portion of said source document and what portion of said transformation document caused the breakpoint to be reached.

### Claim 48 (depends on 46)

The system of claim 46, wherein said debugging mechanism enforces breakpoints without altering said transformation document.

### Claim 49 (depends on 46)

The system of claim 46, wherein said context information comprises an indication of a portion of said transformation document that is giving rise to said particular action, and context information pertaining to said portion.

### Claim 50 (depends on 49)

The system of claim 49, wherein said breakpoint specifications comprise a particular breakpoint specification directed to said transformation document, and wherein said debugging mechanism determines whether a breakpoint has been reached by determining, based upon said particular breakpoint specification and said context information, whether one or more criteria specified in said particular breakpoint specification has been met.

### Claim 51 (depends on 50)

The system of claim 50, wherein said particular breakpoint specification comprises a locational breakpoint that specifies a particular location in said transformation document.

### Claim 52 (depends on 50)

The system of claim 50, wherein said particular breakpoint specification comprises a conditional breakpoint specification that specifies one or more conditions to be met.

### Claim 53 (depends on 50)

The system of claim 50, wherein said particular breakpoint specification comprises an Xpath expression.

### Claim 54 (depends on 46)

The system of claim 46, wherein said context information comprises an indication of a portion of said source document that is a subject of said particular action, and context information pertaining to said portion.

### Claim 55 (depends on 54)

The system of claim 54, wherein said breakpoint specifications comprise a particular breakpoint specification directed to said source document, and wherein said debugging mechanism determines whether a breakpoint has been reached by determining, based upon said particular breakpoint specification and said context information, whether one or more criteria specified in said particular breakpoint specification has been met.

### Claim 56 (depends on 55)

The system of claim 55, wherein said particular breakpoint specification comprises a locational breakpoint that specifies a particular location in said source document.

### Claim 57 (depends on 55)

The system of claim 55, wherein said particular breakpoint specification comprises a conditional breakpoint specification that specifies one or more conditions to be met.

### Claim 58 (depends on 55)

The system of claim 55, wherein said particular breakpoint specification comprises an Xpath expression.
