# US 2018/0322030 A1 · Conditional debugging of server-side production code

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

- Number: US 2018/0322030 A1
- Document ID: US20180322030A1
- Status: Published application
- Kind: A1
- Application number: 15/586,593
- Filed: 2017-05-04
- Published: 2018-11-08
- Earliest claimed: 2017-05-04
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Jackson Davis; Nelson Mandela Billing; Nikhil Ravindra Joglekar
- Web page: https://patentgrep.com/patent/US20180322030A1

## CPC

- G06F 11/3624: {by performing operations on the source code, e.g. via a compiler}
- G06F 11/362: Debugging of software
- G06F 11/3636: {by tracing the execution of the program}
- G06F 11/3644: {by instrumenting at runtime}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 8/443: {Optimisation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for processing breakpoints on a remotely located server computer are presented. In one embodiment, a breakpoint is set in a target program. This includes setting the breakpoint in a manner that does not block execution of the target program upon the breakpoint triggering. Additionally, executable instructions are included at the location in the target program of the breakpoint to generate a snapshot of debugger information regarding the target program. The snapshot information is then provided to a programmer's debugger for debugging purposes. Further, in setting the breakpoint, the breakpoint is conditioned by the programmer to trigger only upon the satisfaction of a set of conditional criteria corresponding to a logical execution context.

## Claims

### Claim 1

A computer-implemented method for processing an encountered breakpoint in a non-obstructing manner, the method comprising:
receiving breakpoint information from a computer user in regard to an execution location in a target program executing on a computing device to set a first breakpoint;
setting the first breakpoint at the execution location, wherein setting the first breakpoint at the execution location comprises:
setting the first breakpoint in a manner that that does not block execution of the target program upon triggering the first breakpoint; and
including executable instructions in the target program to generate a snapshot of debugger information regarding the target program upon the first breakpoint triggering;
receiving a snapshot of debugging information in regard to the triggering of the first breakpoint; and
providing the snapshot of debugging information to the computer user.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein:
the breakpoint information from the computer user includes conditional information identifying one or more execution context conditions upon which the first breakpoint will trigger; and
setting the first breakpoint at the execution location further comprises setting the first breakpoint to trigger upon satisfaction of the conditional information at the execution location during execution of the target program.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein the breakpoint information identifies an atomic set of breakpoints to be set in the target program, the atomic set of breakpoints including the first breakpoint, and wherein each breakpoint of the atomic set of breakpoints corresponds to a distinct execution location in the target program.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein the conditional information identifying one or more conditions upon which the first breakpoint will trigger is the conditional information for each breakpoint of the atomic set of breakpoints.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4 further comprising:
setting each breakpoint of the atomic set of breakpoints at its corresponding execution location of the breakpoint, and wherein setting each breakpoint at the corresponding execution location comprises:
setting each breakpoint in a manner that that does not block execution of the target program upon triggering the breakpoint; and
including instructions in the target program to generate a snapshot of debugger information regarding the target program upon the breakpoint triggering.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein setting each breakpoint of the atomic set of breakpoints further includes setting each breakpoint to trigger upon satisfaction of the conditional information at its corresponding execution point during execution of the target program.

### Claim 7 (depends on 5)

The computer-implemented method of claim 5 further comprising recompiling the target program to suppress optimizations in the executable code.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, wherein recompiling the target program to suppress optimizations in the executable code comprises:
identifying a code block corresponding to the execution location of each breakpoint in the target program; and
recompiling the target program to suppress optimizations in the identified code blocks.

### Claim 9

A computer-readable medium bearing computer-executable instructions which, when executed on a computer comprising at least a processor, carry out a method for processing a breakpoint, the method comprising, upon encountering a first breakpoint location corresponding to a first breakpoint during execution of a target program:
testing whether a set of execution context conditions associated with the encountered first breakpoint is satisfied; and
upon determining that the set of conditions are satisfied:
executing instructions to generate a snapshot of debugging information of the target program at the encountered breakpoint location; and
processing the generated snapshot for debugging purposes of the target program.

### Claim 10 (depends on 9)

The computer-readable medium of claim 9, wherein the method further comprises, and upon determining that the set of conditions are satisfied:
testing whether this is the first time of encountering the first breakpoint location since the target program began execution; and
upon determining that this is the first time of encountering the first breakpoint location since the target program began execution:
acquiring a context identifier of the logical execution context that satisfied the set of conditions of the first breakpoint; and
conditioning the first breakpoint according to the context identifier such that the set of conditions associated with the first breakpoint are subsequently satisfied by the context identifier of the logical execution context.

### Claim 11 (depends on 10)

The computer-readable medium of claim 10, wherein the context identifier of the logical execution context is the session identifier of the logical execution context.

### Claim 12 (depends on 10)

The computer-readable medium of claim 10:
wherein the first breakpoint is one of a plurality of breakpoints of an atomic set of breakpoints; and
wherein the method further comprises:
testing whether this is the first time of encountering any breakpoint location corresponding to a breakpoint of the atomic set of breakpoints since the target program began execution; and
upon determining that this is the first time of encountering any breakpoint location corresponding to a breakpoint of the atomic set of breakpoints since the target program began execution:
conditioning each breakpoint of the atomic set of breakpoints according to the context identifier such that the set of conditions associated with any breakpoint of the atomic set of breakpoints are subsequently satisfied by the context identifier of the logical execution context.

### Claim 13

A computer device for processing breakpoint requests, the system comprising a processor and a memory, wherein the processor executes instructions stored in the memory as part of or in conjunction with one or more additional executable components that, in execution, configure the computer device to:
receive breakpoint information from a computer user in regard to an execution location in an executing target program to set a first breakpoint in the target program;
set the first breakpoint at the execution location, wherein setting the first breakpoint at the execution location comprises:
set the first breakpoint in a manner that that does not block execution of the target program upon triggering the first breakpoint; and
include executable instructions in the target program to generate a snapshot of debugger information regarding the target program upon the first breakpoint triggering;
receive a snapshot of debugging information in regard to the triggering of the first breakpoint; and
provide the snapshot of debugging information to the computer user.

### Claim 14 (depends on 13)

The computer device of claim 13, wherein:
the breakpoint information from the computer user includes conditional information identifying a set of execution context conditions upon which the first breakpoint, in execution, will trigger; and
setting the first breakpoint at the execution location further comprises setting the first breakpoint to trigger upon satisfaction of the conditional information at the execution location during execution of the target program.

### Claim 15 (depends on 14)

The computer device of claim 14, wherein the breakpoint information identifies an atomic set of breakpoints to be set in the target program, the atomic set of breakpoints including the first breakpoint, and wherein each breakpoint of the atomic set of breakpoints corresponds to a distinct execution location in the target program.

### Claim 16 (depends on 15)

The computer device of claim 15, wherein the conditional information identifying one or more conditions upon which the first breakpoint will trigger is the conditional information for each breakpoint of the atomic set of breakpoints.

### Claim 17 (depends on 16)

The computer device of claim 16, wherein the computing device is further configured to:
set each breakpoint of the atomic set of breakpoints its corresponding execution location of the breakpoint, and wherein setting each breakpoint at the corresponding execution location comprises:
setting each breakpoint in a manner that that does not block execution of the target program upon triggering the breakpoint; and
including instructions in the target program to generate a snapshot of debugger information regarding the target program upon the breakpoint triggering.

### Claim 18 (depends on 17)

The computer device of claim 17, wherein setting each breakpoint of the atomic set of breakpoints further includes setting each breakpoint to trigger upon satisfaction of the conditional information at its corresponding execution point during execution of the target program.

### Claim 19 (depends on 18)

The computer device of claim 18, wherein the computer device is further configured to recompile the target program to suppress optimizations in the executable code.

### Claim 20 (depends on 19)

The computer device of claim 19, wherein recompiling the target program to suppress optimizations in the executable code comprises:
identifying a code block corresponding to the execution location of each breakpoint in the target program; and
recompiling the target program to suppress optimizations in the identified code blocks.
