Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Program code debugging method and device

A technology of program code and debugging method, which is applied in the software field, can solve problems such as difficult to remember commands, and achieve the effects of saving debugging time, reducing debugging difficulty, and simplifying user operations

Inactive Publication Date: 2018-07-24
ALIBABA GRP HLDG LTD
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For example, searching for View and saving data to a file requires multiple commands to be combined to complete, which makes it difficult for developers to remember these commands

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Program code debugging method and device
  • Program code debugging method and device
  • Program code debugging method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] In order to make the above objects, features and advantages of the present application more obvious and comprehensible, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0053] Xcode is a programming software for IOS. At present, Xcode projects mainly use LLDB debugger for debugging. When debugging, the user can enter LLDB commands in the LLDB debugger to debug the program code. In order to achieve some debugging effects, users need to input multiple LLDB commands for combined operations. Every time you debug, you have to repeatedly enter many similar commands to operate.

[0054] In order to simplify the debugging process, some LLDB commands are packaged into a debugging command package that can achieve a specified debugging effect in the embodiment of the present application. The user can achieve corresponding other debugging effects by calling the debugging command ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a program code debugging method and device. The method comprises the following steps that: calling a debugging command package, wherein the debugging command package is provided with a debugging script corresponding to at least one language type, and the debugging script is provided with a debugging command; determining the language type of a program code which is debugged at present; determining a target debugging script corresponding to the language type of the program code which is debugged at present; operating the target debugging script to obtaina program code operation result corresponding to the debugging command of the target debugging script. In the embodiment of the invention, a user only needs to input one debugging command package fordebugging the program code of an Objective-C language and the program code of a Swift language, an LLDB debugger automatically calls the corresponding debugging script in the debugging command packagefor debugging to realize a required debugging effect without manually inputting a plurality of debugging commands, so that user operation is simplified, debugging difficulty is lowered, and debuggingtime can be saved.

Description

technical field [0001] The present application relates to the field of software technology, in particular to a method for generating a debugging command package, a method for debugging a program code, a device for generating a debugging command package and a device for debugging a program code. Background technique [0002] Today's programs are becoming more and more complex, leading to various complex problems, so it is necessary to use a debugger to find and solve problems. [0003] At present, iOS debugging is based on the LLDB debugger developed by Apple, and debugging is carried out through LLDB commands, but there are many LLDB commands, and different commands have different purposes, and there are many parameters, and different parameters represent different processing. For developers, to make good use of the debugging function, there is a high requirement for developers to have good debugging skills. [0004] Moreover, in order to achieve some commonly used debuggin...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3628
Inventor 姜春雨
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products