# US 2018/0322028 A1 · Temporary de-optimization of target functions in a cloud debugger

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

- Number: US 2018/0322028 A1
- Document ID: US20180322028A1
- Status: Published application
- Kind: A1
- Application number: 15/586,557
- 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
- Web page: https://patentgrep.com/patent/US20180322028A1

## CPC

- G06F 11/3644: {by instrumenting at runtime}
- G06F 11/3624: {by performing operations on the source code, e.g. via a compiler}
- G06F 11/3636: {by tracing the execution of the program}
- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for processing breakpoints in a target program executing on a remotely located server computer are presented. In one embodiment, upon receiving instructions to set a breakpoint in a target program, a code block of the target program is identified in which the execution location of the breakpoint is to be set. The identified code block of the target program is re-compiled. Re-compiling the code block of the target program comprises re-compiling the code block without optimizations and including executable instructions at the execution location of the breakpoint to generate a snapshot of debugger information regarding the target program upon the breakpoint triggering. The re-compiled code block is then bound in the target program.

## Claims

### Claim 1

A computer-implemented method for processing a breakpoint request regarding a target program, 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;
identifying a code block of the target program including the execution location of the first breakpoint;
re-compiling the code block of the target program, wherein re-compiling the code block of the target program comprises:
re-compiling the code block without optimizations; and
including executable instructions at the execution location to generate a snapshot of debugger information regarding the target program upon the first breakpoint triggering; and
binding the re-compiled code block in the target program.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1 further comprising:
receiving information to remove the first breakpoint from the target program;
re-compiling the code block corresponding to the first breakpoint of the target program without optimizations; and
binding the optimized re-compiled code block in the target program.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the breakpoint information identifies an atomic set of breakpoints to be set in the target program, the atomic set of breakpoints comprising a plurality of breakpoints including the first breakpoint.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein each of the plurality of breakpoints of the atomic set of breakpoints corresponds to a distinct execution location in the target program.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4 further comprising:
for each breakpoint of the plurality of breakpoints:
determining an execution location of a breakpoint
identifying a code block of the target program including the determined execution location of the breakpoint;
re-compiling the identified code block of the target program, wherein re-compiling the identified code block comprises:
re-compiling the identified code block without optimizations; and
including executable instructions at the determined execution location to generate a snapshot of debugger information regarding the target program upon the breakpoint triggering; and
binding the re-compiled code blocks in the target program.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5 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 7 (depends on 6)

The computer-implemented method of claim 6 further comprising:
receiving information to remove the plurality of breakpoints of the atomic set of breakpoints from the target program;
identifying the code blocks of each of the plurality of breakpoints of the atomic set of breakpoints;
for each identified code block, re-compiling the identified code block with optimizations; and
binding the optimized re-compiled code blocks in the target program.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, wherein the target program executes in a hosted environment.

### Claim 9 (depends on 7)

The computer-implemented method of claim 7, wherein the target program executes as native code.

### Claim 10

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 request regarding a target program, 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;
identifying a code block of the target program including the execution location of the first breakpoint;
re-compiling the code block of the target program, wherein re-compiling the code block of the target program comprises:
re-compiling the code block without optimizations; and
including executable instructions at the execution location to generate a snapshot of debugger information regarding the target program upon the first breakpoint triggering; and
binding the re-compiled code block in the target program.

### Claim 11 (depends on 10)

The computer-readable medium of claim 10, wherein the method further comprises:
receiving information to remove the first breakpoint from the target program;
re-compiling the code block corresponding to the first breakpoint of the target program without optimizations; and
binding the optimized re-compiled code block in the target program.

### Claim 12 (depends on 10)

The computer-readable medium of claim 10, wherein the breakpoint information identifies an atomic set of breakpoints to be set in the target program, the atomic set of breakpoints comprising a plurality of breakpoints including the first breakpoint.

### Claim 13 (depends on 12)

The computer-readable medium of claim 12, wherein each of the plurality of breakpoints of the atomic set of breakpoints corresponds to a distinct execution location in the target program.

### Claim 14 (depends on 13)

The computer-readable medium of claim 13, wherein the method further comprises:
for each breakpoint of the plurality of breakpoints:
determining an execution location of a breakpoint
identifying a code block of the target program including the determined execution location of the breakpoint;
re-compiling the identified code block of the target program, wherein re-compiling the identified code block comprises:
re-compiling the identified code block without optimizations; and
including executable instructions at the determined execution location to generate a snapshot of debugger information regarding the target program upon the breakpoint triggering; and
binding the re-compiled code blocks in the target program.

### Claim 15 (depends on 14)

The computer-readable medium of claim 14, wherein the method further comprises:
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 16 (depends on 15)

The computer-readable medium of claim 15, wherein the method further comprises:
receiving information to remove the plurality of breakpoints of the atomic set of breakpoints from the target program;
identifying the code blocks of each of the plurality of breakpoints of the atomic set of breakpoints;
for each identified code block, re-compiling the identified code block with optimizations; and
binding the optimized re-compiled code blocks in the target program.

### Claim 17

A computer device for processing breakpoint requests regarding a target program, 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 an atomic set of breakpoints from a computer user, the atomic set of breakpoints identifying one or more breakpoints to be set in a target program, each of the one or more breakpoints corresponding to an execution location in the target program;
for each of the one or more breakpoints of the atomic set of breakpoints, identify a code block of the target program including the execution location of the corresponding breakpoint;
re-compile each identified code block of the target program, wherein re-compiling each identified code block of the target program comprises:
re-compiling each identified code block without optimizations; and
including executable instructions at the execution location of the breakpoint to generate a snapshot of debugger information regarding the target program upon the breakpoint triggering; and
binding the re-compiled identified code blocks in the target program.

### Claim 18 (depends on 17)

The computer device of claim 17, wherein the computer device is further configured to:
set each of the one or more breakpoints of the atomic set of breakpoints at a corresponding execution location of a breakpoint, and wherein setting each breakpoint at a corresponding execution location comprises:
setting a 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 19 (depends on 18)

The computer device of claim 18, wherein the computer device is further configured to:
receive information to remove the plurality of breakpoints of the atomic set of breakpoints from the target program;
identify the code blocks of each of the plurality of breakpoints of the atomic set of breakpoints;
for each identified code block, re-compile the identified code block with optimizations; and
bind the optimized re-compiled code blocks in the target program.

### Claim 20 (depends on 19)

The computer device of claim 19, wherein the target program executes in a hosted environment.
