# US 2021/0342252 A1 · Debugging a native compiled application from an integrated development environment

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

- Number: US 2021/0342252 A1
- Document ID: US20210342252A1
- Status: Published application
- Kind: A1
- Application number: 16/863,224
- Filed: 2020-04-30
- Published: 2021-11-04
- Earliest claimed: 2020-04-30
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Stuart Douglas; Jason Greene
- Web page: https://patentgrep.com/patent/US20210342252A1

## CPC

- G06F 11/3636: {by tracing the execution of the program}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system includes a memory and processor in communication with the memory. The processor is configured to receive a connection request at an emulation layer from an integrated development environment (IDE). The emulation layer connects, via a socket connection, with the IDE. Using the socket connection, the emulation layer receives a command. The command is decoded to retrieve a parameter and a reference to a native application. The command is mapped to a native debugger command and then used to debug the native application using the native debugger.

## Claims

### Claim at position 1

1: A system, comprising:
a memory; and
a processor in communication with the memory, wherein the processor is configured to perform:
receiving a connection request at an emulation layer from an integrated development environment (IDE);
connecting, via a socket connection, the emulation layer with the IDE;
receiving, at the emulation layer, via the socket connection, a command to perform debugging on bytecode compiled from source code;
decoding the command to retrieve a parameter and a reference to a native application, wherein both the bytecode and the native application are compiled from the same source code;
mapping the command to a native debugger command; and
invoking a native debugger to execute the native application using the native debugger command and the parameter as inputs.

### Claim at position 2 (depends on 1)

2: The system of claim 1, wherein the processor is further configured perform:
receiving a response from the native debugger;
encoding the response from a debugger command from the second language to a corresponding debugger command from a first language; and
sending, via the socket connection, the encoded response to the IDE.

### Claim at position 3 (depends on 1)

3: The system of claim 1, wherein the command is a request for a break point at a location specified by the parameter.

### Claim at position 4 (depends on 1)

4: The system of claim 1, wherein the command is a request for data at a location specified by the parameter.

### Claim at position 5 (depends on 1)

5: The system of claim 1, wherein decoding comprises converting the parameter from a first language to a second language.

### Claim at position 6 (depends on 5)

6: The system of claim 5, wherein the first language is bytecode.

### Claim at position 7 (depends on 5)

7: The system of claim 5, wherein the second language is native CPU instructions.

### Claim at position 8 (depends on 1)

8: The system of claim 1, wherein the command is a debug wire protocol command.

### Claim at position 9

9: A method, comprising:
receiving, at an emulation layer, a command to perform debugging on bytecode compiled from source code;
converting the command from a first language to a native debugger command;
executing a native application using the native debugger command as an input of a native debugger, wherein both the bytecode and the native application are compiled from the same source code;
receiving a response from the native debugger;
converting the response to the first language; and
outputting the converted response.

### Claim at position 10 (depends on 9)

10: The method of claim 9, wherein converting the command comprises:
decoding the command to retrieve a parameter and a reference to a native application; and
mapping the command to the native debugger command.

### Claim at position 11 (depends on 10)

11: The method of claim 10, wherein the command is a request for a break point at a location specified by the parameter.

### Claim at position 12 (depends on 10)

12: The method of claim 10, wherein the command is a request for data at a location specified by the parameter.

### Claim at position 13 (depends on 9)

13: The method of claim 9, wherein the first language is bytecode.

### Claim at position 14 (depends on 9)

14: The method of claim 9, wherein the command is a debug wire protocol command.

### Claim at position 15

15: A non-transitory machine readable medium storing code, which when executed by a processor is configured to:
receive, at the emulation layer, via the socket connection, a command to perform debugging on bytecode compiled from source code;
decode the command to retrieve a parameter and a reference to a native application, wherein both the bytecode and the native application are compiled from the same source code;
map the command to a native debugger command; and
invoke a native debugger to execute the native application using the native debugger command and the parameter as inputs.

### Claim at position 16 (depends on 15)

16: The non-transitory machine readable medium of claim 15, wherein the code, when executed by a processor, is further configured to:
receive a response from the native debugger;
encode the response from a debugger command from a second language to a debugger command from a first language; and
send, via the socket connection, the encoded response.

### Claim at position 17 (depends on 15)

17: The non-transitory machine readable medium of claim 15, wherein the command is a request for a break point at a location specified by the parameter.

### Claim at position 18 (depends on 15)

18: The non-transitory machine readable medium of claim 15, wherein the command is a request for data at a location specified by the parameter.

### Claim at position 19 (depends on 15)

19: The non-transitory machine readable medium of claim 15, wherein decoding comprises:
converting the parameter from a first language to a second language.

### Claim at position 20 (depends on 19)

20: The non-transitory machine readable medium of claim 19, wherein the first language is bytecode.
