Search

CN-122019341-A - Program debugging method and device, computer system and storage medium

CN122019341ACN 122019341 ACN122019341 ACN 122019341ACN-122019341-A

Abstract

Embodiments of the present disclosure provide a program debugging method and apparatus, a computer system, and a storage medium. The program debugging method is used for a client and comprises the steps of connecting the client to a first server to carry out program debugging on the first server in response to a first selection operation on a first debugging interface, and connecting the client to a second server to carry out program debugging on the second server in response to a second selection operation on the first debugging interface. The method allows one client to be connected with a plurality of servers at the same time, and manages and switches the servers in a unified user interface, so that not only is the efficiency of debugging work improved and the multi-task capability enhanced, but also the user experience is improved, and meanwhile, convenience is created for parallel operation and debugging.

Inventors

  • ZHOU WEI
  • AN XIONGSHAN
  • YAN XIAOBO
  • ZHANG YONGSU
  • ZHANG YU
  • WANG JIAN

Assignees

  • 北京有竹居网络技术有限公司

Dates

Publication Date
20260512
Application Date
20241111

Claims (14)

  1. 1. A program debugging method for a client, comprising: connecting the client to a first server in response to a first selection operation of a first debug interface to program debug the first server, and And responding to a second selection operation of the first debugging interface, and connecting the client to a second server to program debug the second server.
  2. 2. The program debugging method of claim 1, wherein, Program debugging is carried out on the first server, and comprises the steps of debugging a first program running on the first server through the client; Program debugging is carried out on the second server, including debugging is carried out on a second program running on the second server through the client side, Wherein the first program and the second program correspond to different execution processes of the same task.
  3. 3. The program debugging method of claim 1, wherein the client maintains communication with the first server during program debugging of the second server through the first debugging interface.
  4. 4. The program debugging method of claim 1, further comprising: And responding to a third selection operation of the first debugging interface of the client, switching from the program debugging of the second server back to the program debugging of the first server so as to continue the program debugging of the first server through the first debugging interface.
  5. 5. The program debugging method of claim 4, wherein any one of the first selection operation, the second selection operation, and the third selection operation comprises an operation of a user entering an operation command at the first debugging interface of the client.
  6. 6. The program debugging method of claim 5, wherein the input operation command comprises any one of an input line command and a menu command.
  7. 7. The program debugging method of any one of claims 1-6, comprising: The program running on the first server debugged in the first debug interface of the client calls heterogeneous device resources in the first server, or And calling heterogeneous equipment resources in the second server by a program running on the second server debugged in the first debugging interface of the client.
  8. 8. The program debugging method of claim 7, wherein the heterogeneous device resources comprise multiple types of accelerator cards.
  9. 9. The program debugging method of any one of claims 1-6, wherein, And carrying out communication connection through different communication sessions respectively established between the client and the first server and the second server.
  10. 10. A computer system, comprising: A plurality of servers including a first server and a second server; a client configured to: Connecting to the first server to program the first server in response to a first selection operation of a first debug interface, and And responding to a second selection operation of the first debugging interface, connecting to the second server to program debug the second server.
  11. 11. A program debugging apparatus for a client, comprising: A first connection module configured to connect the client to a first server in response to a first selection operation of a first debug interface to program debug the first server, and And the second connection module is configured to respond to a second selection operation of the first debugging interface, and connect the client to a second server so as to debug the program of the second server.
  12. 12. A program debugging apparatus for a client, comprising: At least one memory configured to store computer-executable instructions, and At least one processor configured to execute the computer-executable instructions, Wherein the computer executable instructions, when executed by the at least one processor, implement the program debugging method of any one of claims 1-9.
  13. 13. An electronic device comprising the program debugging apparatus of claim 11 or 12.
  14. 14. A non-transitory storage medium storing non-transitory computer-executable instructions, wherein the computer-executable instructions, when executed by at least one processor, implement the program debugging method of any of claims 1-9.

Description

Program debugging method and device, computer system and storage medium Technical Field Embodiments of the present disclosure relate to a program debugging method and apparatus, a computer system, and a storage medium. Background Remote debugging tools are a type of software tool that allows an application to run on one machine (typically a server) while a developer debugs the application on another machine (typically a client). Such tools are particularly important in the development and maintenance of web services, distributed systems, and large-scale computing applications. Disclosure of Invention At least one embodiment of the present disclosure provides a program debugging method for a client, the program debugging method including connecting the client to a first server to program-debug the first server in response to a first selection operation of a first debug interface, and connecting the client to a second server to program-debug the second server in response to a second selection operation of the first debug interface. At least one embodiment of the present disclosure also provides a computer system comprising a plurality of servers including a first server and a second server, and a client configured to connect to the first server to program the first server in response to a first selection operation of a first debug interface, and to connect to the second server to program the second server in response to a second selection operation of the first debug interface. At least one embodiment of the present disclosure also provides a program debugging apparatus for a client, the program debugging apparatus including a first connection module configured to connect the client to a first server to program-debug the first server in response to a first selection operation of a first debugging interface, and a second connection module configured to connect the client to a second server to program-debug the second server in response to a second selection operation of the first debugging interface. At least one embodiment of the present disclosure also provides a program debugging apparatus for a client, the program debugging apparatus comprising at least one memory configured to store computer-executable instructions and at least one processor configured to execute the computer-executable instructions, wherein the computer-executable instructions, when executed by the at least one processor, implement the program debugging method as described in any of the embodiments above. At least one embodiment of the present disclosure further provides an electronic device, which includes the program debugging apparatus according to any one of the foregoing embodiments. At least one embodiment of the present disclosure also provides a non-transitory storage medium, non-transitory storing computer-executable instructions, wherein the computer-executable instructions, when executed by at least one processor, implement the program debugging method of any one of the embodiments above. Drawings In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly described below, and it is apparent that the drawings in the following description relate only to some embodiments of the present disclosure, not to limit the present disclosure. FIG. 1 shows a schematic diagram of a gdb client debugging an application running on a server. Fig. 2 shows a schematic diagram of a system for debugging a server by a gdb client according to at least one embodiment of the present disclosure. FIG. 3 illustrates a schematic diagram of a debug interface provided by at least one embodiment of the present disclosure. Fig. 4 illustrates a flowchart of a program debugging method provided by at least one embodiment of the present disclosure. Fig. 5 is a schematic diagram of a program debugging device according to at least one embodiment of the present disclosure. Fig. 6 is a schematic diagram of another program debugging device according to at least one embodiment of the present disclosure. Fig. 7 is a schematic diagram of an electronic device according to at least one embodiment of the present disclosure. Fig. 8 illustrates a schematic diagram of a non-transitory storage medium provided by at least one embodiment of the present disclosure. Detailed Description For the purpose of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present disclosure. It will be apparent that the described embodiments are some, but not all, of the embodiments of the present disclosure. All other embodiments, which can be made by one of ordinary skill in the art without the need for inventive faculty, are within the scope of the present d