[go: up one dir, main page]

CN118503138B - Application debugging method, device, equipment and storage medium - Google Patents

Application debugging method, device, equipment and storage medium Download PDF

Info

Publication number
CN118503138B
CN118503138B CN202410955057.0A CN202410955057A CN118503138B CN 118503138 B CN118503138 B CN 118503138B CN 202410955057 A CN202410955057 A CN 202410955057A CN 118503138 B CN118503138 B CN 118503138B
Authority
CN
China
Prior art keywords
target
code structure
program
class
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410955057.0A
Other languages
Chinese (zh)
Other versions
CN118503138A (en
Inventor
刘千乐
陈茂林
戚家鑫
王燕灵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou New China And Big Polytron Technologies Inc
Original Assignee
Hangzhou New China And Big Polytron Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou New China And Big Polytron Technologies Inc filed Critical Hangzhou New China And Big Polytron Technologies Inc
Priority to CN202410955057.0A priority Critical patent/CN118503138B/en
Publication of CN118503138A publication Critical patent/CN118503138A/en
Application granted granted Critical
Publication of CN118503138B publication Critical patent/CN118503138B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/362Debugging of software
    • G06F11/3624Debugging of software by performing operations on the source code, e.g. via a compiler
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/02Knowledge representation; Symbolic representation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Evolutionary Computation (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Artificial Intelligence (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本申请涉及程序调试技术领域,尤其涉及一种应用程序调试方法、装置、设备及存储介质,方法包括:基于获取的目标应用程序的目录运行结构生成初级代码结构模型;基于初级代码结构模型确定目标类,分析目标类得到对应的知识图谱;基于目标类与构建的程序控制台处理获取的请求参数得到标识以及标识对应的数据快照;基于请求参数、标识与数据快照更新初级代码结构模型得到目标代码结构模型;基于选择的代码结构链以及该代码结构链对应的图谱分支得到脚本程序,响应于脚本程序对应于第三方类,获取脚本程序对应的标识对应的数据快照得到目标数据快照;基于目标数据快照对目标应用程序进行调试,本申请便于提升调试应用程序时的调试效率与数据安全性。

The present application relates to the field of program debugging technology, and in particular to an application debugging method, apparatus, device and storage medium, the method comprising: generating a primary code structure model based on an acquired directory operation structure of a target application; determining a target class based on the primary code structure model, analyzing the target class to obtain a corresponding knowledge graph; obtaining an identifier and a data snapshot corresponding to the identifier by processing the acquired request parameters based on the target class and a constructed program console; updating the primary code structure model based on the request parameters, the identifier and the data snapshot to obtain a target code structure model; obtaining a script program based on a selected code structure chain and a graph branch corresponding to the code structure chain, and obtaining a data snapshot corresponding to the identifier corresponding to the script program in response to the script program corresponding to a third-party class to obtain a target data snapshot; debugging the target application based on the target data snapshot, the present application facilitates improving debugging efficiency and data security when debugging an application.

Description

应用程序调试方法、装置、设备及存储介质Application debugging method, device, equipment and storage medium

技术领域Technical Field

本申请涉及程序调试技术领域,尤其涉及一种应用程序调试方法、装置、设备及存储介质。The present application relates to the technical field of program debugging, and in particular to an application debugging method, device, equipment and storage medium.

背景技术Background Art

用户机构内网一般采用应用提供商提供的应用程序进行作业,受限于应用程序的程序接口运行缓慢和/或应用程序中产生脏数据,应用程序易运行错误,应用程序运行错误使需对其进行调试。The intranet of user organizations generally uses applications provided by application providers to perform operations. Due to the slow operation of the application's program interface and/or the generation of dirty data in the application, the application is prone to running errors, which require debugging.

目前,对应用程序进行调试的一种方式为:应用程序运行错误时,应用提供商为应用程序添加日志,通过日志获取应用程序的运行参数,然后分析运行参数从而确定应用程序的断点所在,之后修复断点,从而实现对应用程序的调试。Currently, one way to debug an application is: when an application runs into an error, the application provider adds a log to the application, obtains the application's running parameters through the log, and then analyzes the running parameters to determine where the application's breakpoints are, and then fixes the breakpoints to debug the application.

但是,若每次应用程序运行错误时,均采用上述方式对应用程序进行调试,会占用应用提供商与用户机构较多的时间,从而导致应用程序调试的效率较低;且,应用提供商采用上述方式调试应用程序时,通过获取的运行参数有可能获知用户机构的私密数据,从而降低用户内网的数据安全性;综上可见,通过现有技术调试应用程序的调试效率与数据安全性均较低。However, if the above method is used to debug the application every time an application running error occurs, it will take up much time of the application provider and the user organization, resulting in low efficiency of application debugging; and, when the application provider uses the above method to debug the application, it is possible to obtain the private data of the user organization through the obtained operating parameters, thereby reducing the data security of the user's intranet; in summary, it can be seen that the debugging efficiency and data security of debugging applications using existing technologies are both low.

发明内容Summary of the invention

为了便于提升调试应用程序时的调试效率与数据安全性,本申请实施例提供一种应用程序调试方法、装置、设备及存储介质。In order to improve debugging efficiency and data security when debugging an application, embodiments of the present application provide an application debugging method, apparatus, device, and storage medium.

第一方面,本申请实施例提供一种应用程序调试方法,包括:In a first aspect, an embodiment of the present application provides an application debugging method, comprising:

基于获取的目标应用程序的目录运行结构生成初级代码结构模型;Generate a primary code structure model based on the obtained directory operation structure of the target application;

基于所述初级代码结构模型确定目标类,分析所述目标类得到对应的知识图谱;基于所述目标类与构建的程序控制台处理获取的请求参数得到标识以及所述标识对应的数据快照;Determine the target class based on the primary code structure model, analyze the target class to obtain the corresponding knowledge graph; process the acquired request parameters based on the target class and the constructed program console to obtain an identifier and a data snapshot corresponding to the identifier;

基于所述请求参数、所述标识与所述数据快照更新所述初级代码结构模型得到目标代码结构模型;所述目标代码结构模型包括与多个所述请求参数一一对应的代码结构链;所述代码结构链在所述知识图谱中具有对应的图谱分支;Based on the request parameter, the identifier and the data snapshot, the primary code structure model is updated to obtain a target code structure model; the target code structure model includes a code structure chain corresponding to a plurality of the request parameters one by one; the code structure chain has a corresponding graph branch in the knowledge graph;

基于选择的代码结构链以及该代码结构链对应的图谱分支得到脚本程序,响应于所述脚本程序对应于第三方类,获取所述脚本程序对应的标识对应的数据快照得到目标数据快照;A script program is obtained based on the selected code structure chain and the graph branch corresponding to the code structure chain, and in response to the script program corresponding to a third-party class, a data snapshot corresponding to an identifier corresponding to the script program is obtained to obtain a target data snapshot;

基于所述目标数据快照对所述目标应用程序进行调试。The target application is debugged based on the target data snapshot.

第二方面,本申请实施例提供一种应用程序调试装置,包括:In a second aspect, an embodiment of the present application provides an application debugging device, including:

初级模型生成模块,用于基于获取的目标应用程序的目录运行结构生成初级代码结构模型;A primary model generation module, used for generating a primary code structure model based on the obtained directory operation structure of the target application;

标识快照获取模块,用于基于所述初级代码结构模型确定目标类,分析所述目标类得到对应的知识图谱;基于所述目标类与构建的程序控制台处理获取的请求参数得到标识以及所述标识对应的数据快照;An identification snapshot acquisition module is used to determine the target class based on the primary code structure model, analyze the target class to obtain the corresponding knowledge graph; based on the target class and the constructed program console, process the obtained request parameters to obtain the identification and the data snapshot corresponding to the identification;

目标模型生成模块,用于基于所述请求参数、所述标识与所述数据快照更新所述初级代码结构模型得到目标代码结构模型;所述目标代码结构模型包括与多个所述请求参数一一对应的代码结构链;所述代码结构链在所述知识图谱中具有对应的图谱分支;A target model generation module, configured to update the primary code structure model based on the request parameter, the identifier and the data snapshot to obtain a target code structure model; the target code structure model includes a code structure chain corresponding to a plurality of the request parameters one by one; the code structure chain has a corresponding graph branch in the knowledge graph;

目标快照获取模块,用于基于选择的代码结构链以及该代码结构链对应的图谱分支得到脚本程序,响应于所述脚本程序对应于第三方类,获取所述脚本程序对应的标识对应的数据快照得到目标数据快照;A target snapshot acquisition module, used to obtain a script program based on a selected code structure chain and a graph branch corresponding to the code structure chain, and in response to the script program corresponding to a third-party class, obtain a data snapshot corresponding to an identifier corresponding to the script program to obtain a target data snapshot;

目标程序调试模块,用于基于所述目标数据快照对所述目标应用程序进行调试。The target program debugging module is used to debug the target application program based on the target data snapshot.

第三方面,本申请实施例提供了一种计算机设备,计算机设备包括存储器和处理器,所述存储器存储有计算机程序,处理器执行该计算机程序时实现上述的方法中的步骤。In a third aspect, an embodiment of the present application provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the steps in the above method when executing the computer program.

第四方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述的方法中的步骤。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the steps in the above method when executed by a processor.

第五方面,本申请实施例还提供了一种计算机程序产品。所述计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述任一方法实施例中的步骤。In a fifth aspect, the embodiments of the present application further provide a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

上述应用程序调试方法、装置、设备及存储介质的实施例,通过基于获取的目标应用程序的目录运行结构生成初级代码结构模型;基于所述初级代码结构模型确定目标类,分析所述目标类得到对应的知识图谱;基于所述目标类与构建的程序控制台处理获取的请求参数得到标识以及所述标识对应的数据快照;基于所述请求参数、所述标识与所述数据快照更新所述初级代码结构模型得到目标代码结构模型;所述目标代码结构模型包括与多个所述请求参数一一对应的代码结构链;所述代码结构链在所述知识图谱中具有对应的图谱分支;基于选择的代码结构链以及该代码结构链对应的图谱分支得到脚本程序,响应于所述脚本程序对应于第三方类,获取所述脚本程序对应的标识对应的数据快照得到目标数据快照;基于所述目标数据快照对所述目标应用程序进行调试;通过上述实施例的实施,调试人员对出现运行错误的应用程序时,无需再为应用程序添加日志,而是可以直接进行调试,如此便于提升应用程序的调试效率;且,调试的过程中,无需获取应用程序的日志以及日志中应用程序的运行参数,从而可避免用户机构的私密数据的泄露,如此,上述实施例的实施便于提升调试应用程序时的调试效率与数据安全性。The embodiments of the above-mentioned application debugging method, device, equipment and storage medium generate a primary code structure model based on the directory operation structure of the acquired target application; determine the target class based on the primary code structure model, analyze the target class to obtain the corresponding knowledge graph; obtain the identification and the data snapshot corresponding to the identification by processing the acquired request parameters based on the target class and the constructed program console; update the primary code structure model based on the request parameters, the identification and the data snapshot to obtain the target code structure model; the target code structure model includes a code structure chain corresponding to a plurality of the request parameters one by one; the code structure chain has a corresponding graph branch in the knowledge graph; based on the selected code structure chain with and the graph branch corresponding to the code structure chain obtains the script program, in response to the script program corresponding to the third-party class, obtains the data snapshot corresponding to the identifier corresponding to the script program to obtain the target data snapshot; debugs the target application based on the target data snapshot; through the implementation of the above embodiment, when the debugging personnel deal with the application with running errors, there is no need to add logs to the application, but can directly debug, which is convenient to improve the debugging efficiency of the application; and, during the debugging process, there is no need to obtain the application log and the operating parameters of the application in the log, so as to avoid the leakage of private data of the user organization, so that the implementation of the above embodiment is convenient to improve the debugging efficiency and data security when debugging the application.

应当理解,本部分所描述的内容并非旨在标识本申请的实施例的关键或重要特征,也不用于限制本申请的范围。本申请的其它特征将通过以下的说明书而变得容易理解。It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

图1为本申请一个实施例中应用程序调试方法的应用环境图;FIG1 is an application environment diagram of an application debugging method in one embodiment of the present application;

图2为本申请实施例一中提供的一种应用程序调试方法流程图;FIG2 is a flow chart of an application debugging method provided in Embodiment 1 of the present application;

图3为本申请实施例一中提供的一种初级代码结构模型的示意图;FIG3 is a schematic diagram of a primary code structure model provided in Embodiment 1 of the present application;

图4为本申请实施例一中提供的一种目标类对应的知识图谱的示意图;FIG4 is a schematic diagram of a knowledge graph corresponding to a target class provided in Example 1 of the present application;

图5为本申请实施例一中提供的一种目标代码结构模型的示意图;FIG5 is a schematic diagram of a target code structure model provided in Example 1 of the present application;

图6为本申请实施例二中提供的一种应用程序调试方法流程图;FIG6 is a flow chart of an application debugging method provided in Embodiment 2 of the present application;

图7为本申请实施例三中提供的一种应用程序调试方法流程图;FIG7 is a flow chart of an application debugging method provided in Embodiment 3 of the present application;

图8为本申请实施例四中提供的一种应用程序调试方法流程图;FIG8 is a flow chart of an application debugging method provided in Embodiment 4 of the present application;

图9为本申请实施例五中提供的一种应用程序调试方法流程图;FIG9 is a flow chart of an application debugging method provided in Embodiment 5 of the present application;

图10为本申请实施例六中提供的一种应用程序调试方法流程图;FIG10 is a flow chart of an application debugging method provided in Embodiment 6 of the present application;

图11为本申请一个实施例中提供的一种应用程序调试装置的结构示意图;FIG11 is a schematic diagram of the structure of an application debugging device provided in one embodiment of the present application;

图12为本申请一个实施例中提供的一种计算机设备的结构示意图;FIG12 is a schematic diagram of the structure of a computer device provided in one embodiment of the present application;

图13为本申请一个实施例中提供的一种计算机可读存储介质的内部结构图。FIG. 13 is a diagram of the internal structure of a computer-readable storage medium provided in one embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

为了使本公开的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本公开进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本公开,并不用于限定本公开。In order to make the purpose, technical solution and advantages of the present disclosure more clear, the present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present disclosure and are not used to limit the present disclosure.

需要说明的是,本文的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本文的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、装置、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the specification and claims of this article and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of this article described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.

在本文中,术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系。例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。In this article, the term "and/or" is only a way to describe the association relationship of associated objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character "/" in this article generally indicates that the associated objects before and after are in an "or" relationship.

为解决上述问题,本公开实施例提供了一种应用程序调试方法,可以应用于如图1所示的应用环境中。其中,终端102通过网络与服务器104进行通信。数据存储系统可以存储服务器104需要处理的数据。数据存储系统可以集成在服务器104上,也可以放在云上或其他网络服务器上。其中,终端102可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑、物联网设备和便携式可穿戴设备,物联网设备可为智能音箱、智能电视、智能空调、智能车载设备等。便携式可穿戴设备可为智能手表、智能手环、头戴设备等。服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。To solve the above problems, the embodiments of the present disclosure provide an application debugging method, which can be applied in the application environment shown in Figure 1. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.

实施例一Embodiment 1

图2为本申请实施例一提供的一种应用程序调试方法流程图,参考图2,该方法可以由执行该种方法的装置来执行,该装置可以由软件和/或硬件的方式实现,该方法包括:FIG2 is a flow chart of an application debugging method provided in Embodiment 1 of the present application. Referring to FIG2 , the method may be executed by a device for executing the method, and the device may be implemented in software and/or hardware. The method includes:

S110、基于获取的目标应用程序的目录运行结构生成初级代码结构模型。S110 . Generate a primary code structure model based on the acquired directory operation structure of the target application.

其中,目标应用程序用户机构内网运行错误的应用程序,示例性的,本实施例中的应用程序为应用提供商提供的JAVA应用程序,运行于用户机构内网;目录运行结构用户存放应用程序所依赖的第三方库或框架;示例性的,本实施例中的目录运行结构为库文件目录(lib目录);目录运行结构中内容通过编译处理可以得到对应的编译文件;目标应用程序中设有不同的程序类,如Controller类、Action类等,每个程序类下设有不同的方法,每种方法在应用程序中对应有代码片段,代码片段对应有其代码参数;代码片段可由应用提供商开发生成,也可从开源代码得到,若代码片段从开源代码得到,则该开源代码为第三方代码;参考图3,初级代码结构模型包括目标应用程序中不同程序类的类名、编译文件的文件名、每种类下的不同方法名、每种方法对应的代码参数与代码片段,以及每种代码片段是否为第三方。Among them, the target application is an application that runs incorrectly in the intranet of the user organization. Exemplarily, the application in this embodiment is a JAVA application provided by the application provider, which runs in the intranet of the user organization; the directory operation structure is a third-party library or framework that the user relies on to store the application; Exemplarily, the directory operation structure in this embodiment is a library file directory (lib directory); The content in the directory operation structure can obtain the corresponding compiled file through compilation processing; There are different program classes in the target application, such as Controller class, Action class, etc., each program class has different methods, each method has a corresponding code snippet in the application, and the code snippet has its code parameters; the code snippet can be developed and generated by the application provider, or obtained from open source code. If the code snippet is obtained from open source code, the open source code is a third-party code; Referring to Figure 3, the primary code structure model includes the class names of different program classes in the target application, the file name of the compiled file, the different method names under each class, the code parameters and code snippets corresponding to each method, and whether each code snippet is third-party.

具体的,判断出目标应用程序生成后,获取该目标应用程序的目录运行结构,然后对该目录运行结构进行处理从而生成初级代码结构模型。Specifically, after determining that the target application is generated, the directory operation structure of the target application is obtained, and then the directory operation structure is processed to generate a primary code structure model.

S120、基于所述初级代码结构模型确定目标类,分析所述目标类得到对应的知识图谱;基于所述目标类与构建的程序控制台处理获取的请求参数得到标识以及所述标识对应的数据快照。S120. Determine the target class based on the primary code structure model, analyze the target class to obtain the corresponding knowledge graph; obtain the request parameters obtained based on the target class and the constructed program console to obtain an identifier and a data snapshot corresponding to the identifier.

其中,目标应用程序包括多种程序类,调试目标应用程序时仅需获取其中特定的若干种程序类即可,将特定的若干种程序类记为目标类,如TestControl类;示例性的,参考图4,每种目标类下包含有不同的方法,如方法A、方法B;每种方法可能调用其他的程序类,如BService(B服务)、CService(C服务);BService(B服务)或CService(C服务)下又可能包含有不同的方法,如b1方法、c1方法;b1方法或c1方法又可能调用其他的程序类,如EService(E服务),EService(E服务)下又包含有其他方法,如e1方法,……,如此通过思维导图的方式建立相应的链接从而形成与每种目标类一一对应的知识图谱;程序控制台用于对目标类与运维人员发出的请求参数进行处理,从而得到与请求参数一一对应的标识以及标识对应的数据快照,示例性的,程序控制台为web程序控制台;运维人员为调试目标应用程序的人员,标识对应一个目标类下的代码片段,程序控制台执行该代码片段生成返回结果也即该标识对应的数据快照。The target application includes multiple program classes. When debugging the target application, only several specific program classes need to be obtained, and the specific program classes are recorded as target classes, such as the TestControl class. For example, referring to FIG. 4 , each target class includes different methods, such as method A and method B. Each method may call other program classes, such as BService and CService. BService or CService may include different methods, such as b1 method and c1 method. b1 method or c1 method may call other program classes. For example, EService (E service), EService (E service) contains other methods, such as e1 method, ..., and thus corresponding links are established through mind mapping to form a knowledge graph corresponding to each target class; the program console is used to process the target class and the request parameters issued by the operation and maintenance personnel, so as to obtain an identifier corresponding to the request parameters and a data snapshot corresponding to the identifier. Exemplarily, the program console is a web program console; the operation and maintenance personnel are personnel who debug the target application, the identifier corresponds to a code snippet under the target class, and the program console executes the code snippet to generate a return result, which is the data snapshot corresponding to the identifier.

具体的,从初级代码结构模型中确定出目标类,对目标类进行分析从而得到对应的知识图谱;进一步的,构建程序控制台,通过程序控制台处理目标类与运维人员发出的请求参数从而生成标识以及标识对应的数据快照。Specifically, the target class is determined from the primary code structure model, and the target class is analyzed to obtain the corresponding knowledge graph; further, a program console is built, and the target class and the request parameters issued by the operation and maintenance personnel are processed through the program console to generate an identification and a data snapshot corresponding to the identification.

S130、基于所述请求参数、所述标识与所述数据快照更新所述初级代码结构模型得到目标代码结构模型;所述目标代码结构模型包括与多个所述请求参数一一对应的代码结构链;所述代码结构链在所述知识图谱中具有对应的图谱分支。S130. Based on the request parameters, the identifier and the data snapshot, the primary code structure model is updated to obtain a target code structure model; the target code structure model includes a code structure chain corresponding to a plurality of the request parameters one by one; the code structure chain has a corresponding graph branch in the knowledge graph.

其中,参考图5,目标代码结构模型为添加请求参数、标识以及数据快照后的初级代码结构模型;目标代码结构模型的每一行为一个对应的代码结构链;每个代码结构链中的类名对应的目标类均对应有知识图谱,知识图谱具有多个图谱分支,多个图谱分支与目标代码结构模型中多个代码结构链一一对应。Among them, referring to Figure 5, the target code structure model is the primary code structure model after adding request parameters, identifiers and data snapshots; each line of the target code structure model is a corresponding code structure chain; the target class corresponding to the class name in each code structure chain corresponds to a knowledge graph, and the knowledge graph has multiple graph branches, and the multiple graph branches correspond one-to-one to the multiple code structure chains in the target code structure model.

具体的,将获取的请求参数、标识以及数据快照添加至初级代码结构模型中对应的位置从而得到目标代码结构模型。Specifically, the obtained request parameters, identifiers, and data snapshots are added to corresponding positions in the primary code structure model to obtain a target code structure model.

S140、基于选择的代码结构链以及该代码结构链对应的图谱分支得到脚本程序,响应于所述脚本程序对应于第三方类,获取所述脚本程序对应的标识对应的数据快照得到目标数据快照。S140. Obtain a script program based on the selected code structure chain and the graph branch corresponding to the code structure chain. In response to the script program corresponding to a third-party class, obtain a data snapshot corresponding to an identifier corresponding to the script program to obtain a target data snapshot.

其中,脚本程序与对应的代码结构链中的代码片段对应,代码片段中的每行代码均对应有脚本程序;示例性的,脚本程序为groovy脚本;若代码片段对应的方法属于第三方类下的方法,则该代码片段对应的脚本程序对应于第三方类;脚本程序对应的标识对的数据快照也即目标数据快照。Among them, the script program corresponds to the code snippet in the corresponding code structure chain, and each line of code in the code snippet corresponds to a script program; exemplarily, the script program is a groovy script; if the method corresponding to the code snippet belongs to the method under a third-party class, then the script program corresponding to the code snippet corresponds to the third-party class; the data snapshot of the identification pair corresponding to the script program is also the target data snapshot.

具体的,通过代码结构链对应的图谱分支对该代码结构链中的代码片段进行处理,得到与代码片段中每行代码一一对应的脚本程序;每生成一个脚本程序后,判断该脚本程序是否对应于第三方类,若否,则展示执行该脚本程序的返回结果;若是,确定与该脚本程序在目标代码结构模型中对应的代码片段,然后确定与该代码片段对应的标识,并获取该标识在目标代码结构模型中对应的数据快照,从而得到目标数据快照。Specifically, the code snippets in the code structure chain are processed through the graph branches corresponding to the code structure chain to obtain script programs corresponding to each line of code in the code snippets; after each script program is generated, it is determined whether the script program corresponds to a third-party class, and if not, the return result of executing the script program is displayed; if so, the code snippet corresponding to the script program in the target code structure model is determined, and then the identifier corresponding to the code snippet is determined, and a data snapshot corresponding to the identifier in the target code structure model is obtained, thereby obtaining the target data snapshot.

S150、基于所述目标数据快照对所述目标应用程序进行调试。S150: Debug the target application based on the target data snapshot.

具体的,获取目标数据快照,并对目标数据快照进行分析从而确定目标应用程序的问题所在,然后对目标应用程序进行调试,直至目标应用程序不再运行出错。Specifically, a target data snapshot is obtained and analyzed to determine the problem of the target application, and then the target application is debugged until the target application no longer runs with errors.

需要说明的是,本实施例通过基于获取的目标应用程序的目录运行结构生成初级代码结构模型;基于所述初级代码结构模型确定目标类,分析所述目标类得到对应的知识图谱;基于所述目标类与构建的程序控制台处理获取的请求参数得到标识以及所述标识对应的数据快照;基于所述请求参数、所述标识与所述数据快照更新所述初级代码结构模型得到目标代码结构模型;所述目标代码结构模型包括与多个所述请求参数一一对应的代码结构链;所述代码结构链在所述知识图谱中具有对应的图谱分支;基于选择的代码结构链以及该代码结构链对应的图谱分支得到脚本程序,响应于所述脚本程序对应于第三方类,获取所述脚本程序对应的标识对应的数据快照得到目标数据快照;基于所述目标数据快照对所述目标应用程序进行调试;通过上述实施例的实施,调试人员对出现运行错误的应用程序时,无需再为应用程序添加日志,而是可以直接进行调试,如此便于提升应用程序的调试效率;且,调试的过程中,无需获取应用程序的日志以及日志中应用程序的运行参数,从而可避免用户机构的私密数据的泄露,如此,上述实施例的实施便于提升调试应用程序时的调试效率与数据安全性。It should be noted that this embodiment generates a primary code structure model based on the directory operation structure of the acquired target application; determines the target class based on the primary code structure model, analyzes the target class to obtain the corresponding knowledge graph; obtains the request parameters based on the target class and the constructed program console to obtain an identifier and a data snapshot corresponding to the identifier; updates the primary code structure model based on the request parameters, the identifier and the data snapshot to obtain a target code structure model; the target code structure model includes a code structure chain corresponding to a plurality of the request parameters one by one; the code structure chain has a corresponding graph branch in the knowledge graph; based on the selected code structure chain and the code structure chain A script program is obtained from the corresponding graph branch, and in response to the script program corresponding to a third-party class, a data snapshot corresponding to an identifier corresponding to the script program is obtained to obtain a target data snapshot; the target application is debugged based on the target data snapshot; through the implementation of the above embodiment, when a debugger performs an application with a running error, there is no need to add a log to the application, but the debugger can directly debug the application, which helps improve the debugging efficiency of the application; and, during the debugging process, there is no need to obtain the application log and the operating parameters of the application in the log, so as to avoid the leakage of private data of the user organization, so that the implementation of the above embodiment helps improve the debugging efficiency and data security when debugging the application.

实施例二Embodiment 2

图6为本申请实施例二提供的一种应用程序调试方法流程图,参考图6,该方法对实施一中的“基于获取的目标应用程序的目录运行结构生成初级代码结构模型”进行优化,需要说明的是,在本实施例未详述的部分,可参见其他实施例的表述;图6所示的一种应用程序调试方法,包括:FIG6 is a flow chart of an application debugging method provided in Embodiment 2 of the present application. Referring to FIG6 , the method optimizes the “generating a primary code structure model based on the acquired directory operation structure of the target application” in Embodiment 1. It should be noted that for the parts not described in detail in this embodiment, reference may be made to the descriptions of other embodiments. The application debugging method shown in FIG6 includes:

S211、获取目标应用程序的目录运行结构。S211. Obtain the directory operation structure of the target application.

其中,目录运行结构可为目标应用程序的库文件目录(lib目录)。The directory operation structure may be a library file directory (lib directory) of the target application.

具体的,获取目标应用程序的目录运行结构,示例性的,获取目标应用程序的库文件目录(lib目录)。Specifically, the directory operation structure of the target application is obtained. Exemplarily, the library file directory (lib directory) of the target application is obtained.

S212、查询所述目录运行结构中所有的程序压缩归档文件得到归档文件集。S212: Query all program compressed archive files in the directory operation structure to obtain an archive file set.

其中,程序压缩归档文件为目录运行结构中所有以jar.结尾的文件,归档文件集为目录运行结构中所有以jar.结尾的文件的集合。The program compressed archive file is all files ending with jar. in the directory operation structure, and the archive file set is the collection of all files ending with jar. in the directory operation structure.

具体的,从目录运行结构中查询出所有以jar.结尾的文件,集合所有以jar.结尾的文件得到归档文件集。Specifically, all files ending with jar. are queried from the directory operation structure, and all files ending with jar. are collected to obtain an archive file set.

S213、反编译所述归档文件集得到程序源码。S213, decompiling the archive file set to obtain program source code.

其中,针对归档文件集预设有反编译程序,反编译程序用于对归档文件集预进行反编译,从而得到程序源码,程序源码也即目标应用程序的源码。There is a preset decompiler for the archive file set, and the decompiler is used to pre-decompile the archive file set to obtain the program source code, which is also the source code of the target application program.

S214、扫描所述程序源码得到初级代码结构模型。S214, scanning the program source code to obtain a primary code structure model.

其中,程序源码具有其文件名;程序源码中包括目标应用程序对应的各程序类,如Controller类、Action类等,每个程序类下设有多个方法,每种方法在应用程序中对应有代码片段,代码片段对应有其代码参数;The program source code has its file name; the program source code includes various program classes corresponding to the target application, such as the Controller class, the Action class, etc., each program class has multiple methods, each method has a corresponding code snippet in the application, and the code snippet has its code parameters;

具体的,先获取程序源码的文件名,还对程序源码进行扫描,从而得到程序源码中各程序类的类名、各程序类下各方法的方法名、各方法对应的代码片段、各代码片段对应的代码参数,进一步的,还判断各代码片段是否为第三方代码片段得到相应的判断结果;然后,将文件名、各程序类的类名、各方法名、各代码参数、各代码片段、各判断结果组合为图3所示的初级代码结构模型。Specifically, the file name of the program source code is first obtained, and the program source code is scanned to obtain the class name of each program class in the program source code, the method name of each method under each program class, the code snippet corresponding to each method, and the code parameter corresponding to each code snippet. Furthermore, it is also determined whether each code snippet is a third-party code snippet to obtain a corresponding judgment result; then, the file name, the class name of each program class, the name of each method, the code parameters, the code snippet, and the judgment results are combined into the primary code structure model shown in Figure 3.

S220、基于所述初级代码结构模型确定目标类,分析所述目标类得到对应的知识图谱;基于所述目标类与构建的程序控制台处理获取的请求参数得到标识以及所述标识对应的数据快照。S220. Determine the target class based on the primary code structure model, analyze the target class to obtain the corresponding knowledge graph; based on the target class and the constructed program console, process the acquired request parameters to obtain an identifier and a data snapshot corresponding to the identifier.

S230、基于所述请求参数、所述标识与所述数据快照更新所述初级代码结构模型得到目标代码结构模型;所述目标代码结构模型包括与多个所述请求参数一一对应的代码结构链;所述代码结构链在所述知识图谱中具有对应的图谱分支。S230. Based on the request parameters, the identifier and the data snapshot, the primary code structure model is updated to obtain a target code structure model; the target code structure model includes a code structure chain corresponding to a plurality of the request parameters one by one; the code structure chain has a corresponding graph branch in the knowledge graph.

S240、基于选择的代码结构链以及该代码结构链对应的图谱分支得到脚本程序,响应于所述脚本程序对应于第三方类,获取所述脚本程序对应的标识对应的数据快照得到目标数据快照。S240. Obtain a script program based on the selected code structure chain and the graph branch corresponding to the code structure chain. In response to the script program corresponding to a third-party class, obtain a data snapshot corresponding to an identifier corresponding to the script program to obtain a target data snapshot.

S250、基于所述目标数据快照对所述目标应用程序进行调试。S250: Debug the target application based on the target data snapshot.

实施例三Embodiment 3

图7为本申请实施例三提供的一种应用程序调试方法流程图,参考图7,该方法对实施一中的“基于所述目标类与构建的程序控制台处理获取的请求参数得到标识以及所述标识对应的数据快照”进行优化,需要说明的是,在本实施例未详述的部分,可参见其他实施例的表述;图7所示的一种应用程序调试方法,包括:FIG. 7 is a flow chart of an application debugging method provided in Embodiment 3 of the present application. Referring to FIG. 7 , the method optimizes the “processing the obtained request parameters based on the target class and the constructed program console to obtain an identifier and a data snapshot corresponding to the identifier” in Embodiment 1. It should be noted that for the parts not described in detail in this embodiment, reference may be made to the descriptions of other embodiments. An application debugging method shown in FIG. 7 includes:

S310、基于获取的目标应用程序的目录运行结构生成初级代码结构模型。S310: Generate a primary code structure model based on the acquired directory operation structure of the target application.

S321、基于所述初级代码结构模型确定目标类,分析所述目标类得到对应的知识图谱。S321. Determine a target class based on the primary code structure model, and analyze the target class to obtain a corresponding knowledge graph.

S322、构建程序控制台,将所述目标类添加至所述程序控制台,并构建所述目标类的代理类。S322, construct a program console, add the target class to the program console, and construct a proxy class of the target class.

其中,程序控制台用于对添加其中的目标类进行调试;本实施例中,目标类为Controller类、Action类;目标应用程序启动时,目标应用程序的加载器会为目标类建立对应的代理类。The program console is used to debug the target class added therein; in this embodiment, the target class is the Controller class and the Action class; when the target application is started, the loader of the target application will create a corresponding proxy class for the target class.

具体的,先构建用于调试目标类的程序控制台,示例性的,程序控制台为web程序控制台;然后将确定出的目标类添加至程序控制台;且在目标应用程序启动时还为目标类建立对应的代理类。Specifically, a program console for debugging the target class is first constructed, exemplarily, the program console is a web program console; then the determined target class is added to the program console; and a corresponding proxy class is also established for the target class when the target application is started.

S323、基于所述代理类处理获取的请求参数得到标识,并将所述标识添加至所述目标应用程序的映射调试上下文中。S323: Obtain an identifier based on the request parameters obtained by the proxy class processing, and add the identifier to the mapping debugging context of the target application.

其中,标识基于运维人员发出的请求参数建立,运维人员可为应用提供商人员,也可为用户机构人员;目标应用程序具有对应的日志,日志具有对应的映射调试上下文,标识生成后可添加至目标应用程序对应的映射调试上下文中。Among them, the identifier is established based on the request parameters sent by the operation and maintenance personnel, who can be personnel of the application provider or personnel of the user organization; the target application has a corresponding log, and the log has a corresponding mapping debugging context. After the identifier is generated, it can be added to the mapping debugging context corresponding to the target application.

具体的,运维人员向程序控制台发出请求参数后,进一步的,代理类获取该请求参数,并基于该请求参数建立对应的标识,然后将该标识添加至目标应用程序对应的映射调试上下文中。Specifically, after the operation and maintenance personnel send request parameters to the program console, the proxy class further obtains the request parameters, establishes a corresponding identifier based on the request parameters, and then adds the identifier to the mapping debugging context corresponding to the target application.

S324、基于所述程序控制台处理所述标识对应的代码片段得到所述数据快照,并从所述映射上下文中提取所述标识。S324: Processing the code snippet corresponding to the identifier based on the program console to obtain the data snapshot, and extracting the identifier from the mapping context.

其中,参考图4,目标代码结构模型中的标识具有对应的代码片段,程序控制台执行该代码片段可得到对应的返回结果,也即代码片段的数据快照。4 , the identifier in the target code structure model has a corresponding code snippet, and the program console executes the code snippet to obtain a corresponding return result, that is, a data snapshot of the code snippet.

具体的,程序控制台接收到运维人员发送的请求参数后,还执行与该请求参数对应的标识对应的代码片段,直至执行到该代码片段中涉及第三方类的部分,停止执行代码片段,执行该代码片段的过程中产生对应的返回结果,将该返回结果记为代码片段的数据快照;进一步的,执行到该代码片段中涉及第三方类的部分时,还通过预设的拦截器从映射调试上下文中获取对应的标识。Specifically, after receiving the request parameters sent by the operation and maintenance personnel, the program console also executes the code snippet corresponding to the identifier corresponding to the request parameter until the part of the code snippet involving the third-party class is executed, and the execution of the code snippet is stopped. The corresponding return result is generated in the process of executing the code snippet, and the return result is recorded as a data snapshot of the code snippet; further, when the part of the code snippet involving the third-party class is executed, the corresponding identifier is obtained from the mapped debugging context through a preset interceptor.

S330、基于所述请求参数、所述标识与所述数据快照更新所述初级代码结构模型得到目标代码结构模型;所述目标代码结构模型包括与多个所述请求参数一一对应的代码结构链;所述代码结构链在所述知识图谱中具有对应的图谱分支。S330. Based on the request parameters, the identifier and the data snapshot, the primary code structure model is updated to obtain a target code structure model; the target code structure model includes a code structure chain corresponding to a plurality of the request parameters one by one; the code structure chain has a corresponding graph branch in the knowledge graph.

S340、基于选择的代码结构链以及该代码结构链对应的图谱分支得到脚本程序,响应于所述脚本程序对应于第三方类,获取所述脚本程序对应的标识对应的数据快照得到目标数据快照。S340, obtaining a script program based on the selected code structure chain and the graph branch corresponding to the code structure chain, and in response to the script program corresponding to a third-party class, obtaining a data snapshot corresponding to an identifier corresponding to the script program to obtain a target data snapshot.

S350、基于所述目标数据快照对所述目标应用程序进行调试。S350: Debug the target application based on the target data snapshot.

实施例四Embodiment 4

图8为本申请实施例四提供的一种应用程序调试方法流程图,参考图8,该方法对实施三中的“基于所述代理类处理获取的请求参数得到标识”进行优化,需要说明的是,在本实施例未详述的部分,可参见其他实施例的表述;图8所示的一种应用程序调试方法,包括:FIG8 is a flow chart of an application debugging method provided in Embodiment 4 of the present application. Referring to FIG8 , the method optimizes the “obtaining an identifier based on the request parameter obtained by the proxy class processing” in Embodiment 3. It should be noted that for the parts not described in detail in this embodiment, reference may be made to the descriptions of other embodiments. An application debugging method shown in FIG8 includes:

S410、基于获取的目标应用程序的目录运行结构生成初级代码结构模型。S410: Generate a primary code structure model based on the acquired directory operation structure of the target application.

S421、基于所述初级代码结构模型确定目标类,分析所述目标类得到对应的知识图谱。S421. Determine a target class based on the primary code structure model, and analyze the target class to obtain a corresponding knowledge graph.

S422、构建程序控制台,将所述目标类添加至所述程序控制台,并构建所述目标类的代理类。S422: Build a program console, add the target class to the program console, and build a proxy class of the target class.

S423A、基于所述代理类获取请求参数。S423A. Obtain request parameters based on the proxy class.

其中,代理类用于在运维人员发出请求参数时,自动劫持该请求参数。Among them, the proxy class is used to automatically hijack the request parameters when the operation and maintenance personnel send the request parameters.

具体的,响应于运维人员向程序控制台发出请求参数,代理类自动劫持该请求参数。Specifically, in response to the operation and maintenance personnel sending a request parameter to the program console, the proxy class automatically hijacks the request parameter.

S423B、确定所述请求参数的发起时间、所述请求参数对应的目标类与方法。S423B, determine the initiation time of the request parameter, and the target class and method corresponding to the request parameter.

其中,请求参数的发起时间为运维人员向程序控制台发出请求参数的时间,请求参数在目标代码结构模型中具有对应的目标类与方法。The initiation time of the request parameter is the time when the operation and maintenance personnel send the request parameter to the program console, and the request parameter has a corresponding target class and method in the target code structure model.

具体的,获取请求参数时,还确定该请求参数的发起时间,在标代码结构模型中对应的目标类与方法,并获取对应目标类的类名、对应方法的方法名。Specifically, when obtaining the request parameters, the initiation time of the request parameters is also determined, the corresponding target class and method in the code structure model are marked, and the class name of the corresponding target class and the method name of the corresponding method are obtained.

S423C、基于所述目标类、所述方法、所述请求参数与所述发起时间创建与所述请求参数对应的标识。S423C: Create an identifier corresponding to the request parameter based on the target class, the method, the request parameter and the initiation time.

具体的,确定与请求参数对应的目标类的类名,还确定与请求参数对应的方法的方法名,同时获取请求参数的发起时间;进一步的,依次组合类名、方法名、请求参数以及发起时间从而构成与该请求参数对应的标识,示例性的,标识为MD5格式的标识。Specifically, determine the class name of the target class corresponding to the request parameter, determine the method name of the method corresponding to the request parameter, and obtain the initiation time of the request parameter; further, combine the class name, method name, request parameter and initiation time in sequence to form an identifier corresponding to the request parameter, exemplarily, the identifier is an identifier in MD5 format.

S423D、并将所述标识添加至所述目标应用程序的映射调试上下文中。S423D, and adding the identifier to the mapping debugging context of the target application.

S424、基于所述程序控制台处理所述标识对应的代码片段得到所述数据快照,并从所述映射上下文中提取所述标识。S424: Processing the code snippet corresponding to the identifier based on the program console to obtain the data snapshot, and extracting the identifier from the mapping context.

S430、基于所述请求参数、所述标识与所述数据快照更新所述初级代码结构模型得到目标代码结构模型;所述目标代码结构模型包括与多个所述请求参数一一对应的代码结构链;所述代码结构链在所述知识图谱中具有对应的图谱分支。S430. Based on the request parameters, the identifier and the data snapshot, the primary code structure model is updated to obtain a target code structure model; the target code structure model includes a code structure chain corresponding to a plurality of the request parameters one by one; the code structure chain has a corresponding graph branch in the knowledge graph.

S440、基于选择的代码结构链以及该代码结构链对应的图谱分支得到脚本程序,响应于所述脚本程序对应于第三方类,获取所述脚本程序对应的标识对应的数据快照得到目标数据快照。S440, obtaining a script program based on the selected code structure chain and the graph branch corresponding to the code structure chain, and in response to the script program corresponding to a third-party class, obtaining a data snapshot corresponding to an identifier corresponding to the script program to obtain a target data snapshot.

S450、基于所述目标数据快照对所述目标应用程序进行调试。S450: Debug the target application based on the target data snapshot.

实施例五Embodiment 5

图9为本申请实施例五提供的一种应用程序调试方法流程图,参考图9,该方法对实施一中的“基于选择的代码结构链以及该代码结构链对应的图谱分支得到脚本程序”进行优化,需要说明的是,在本实施例未详述的部分,可参见其他实施例的表述;图9所示的一种应用程序调试方法,包括:FIG9 is a flow chart of an application debugging method provided in Embodiment 5 of the present application. Referring to FIG9 , the method optimizes the “obtaining a script program based on a selected code structure chain and a graph branch corresponding to the code structure chain” in Embodiment 1. It should be noted that for the parts not described in detail in this embodiment, reference may be made to the descriptions of other embodiments. An application debugging method shown in FIG9 includes:

S510、基于获取的目标应用程序的目录运行结构生成初级代码结构模型。S510: Generate a primary code structure model based on the acquired directory operation structure of the target application.

S520、基于所述初级代码结构模型确定目标类,分析所述目标类得到对应的知识图谱;基于所述目标类与构建的程序控制台处理获取的请求参数得到标识以及所述标识对应的数据快照。S520. Determine the target class based on the primary code structure model, analyze the target class to obtain the corresponding knowledge graph; obtain the request parameters obtained based on the target class and the constructed program console to obtain an identifier and a data snapshot corresponding to the identifier.

S530、基于所述请求参数、所述标识与所述数据快照更新所述初级代码结构模型得到目标代码结构模型;所述目标代码结构模型包括与多个所述请求参数一一对应的代码结构链;所述代码结构链在所述知识图谱中具有对应的图谱分支。S530. Based on the request parameters, the identifier and the data snapshot, the primary code structure model is updated to obtain a target code structure model; the target code structure model includes a code structure chain corresponding to a plurality of the request parameters one by one; the code structure chain has a corresponding graph branch in the knowledge graph.

S541、从所述目标代码结构模型中选择代码结构链,并从所述知识图谱中确定该代码结构链的图谱分支。S541. Select a code structure chain from the target code structure model, and determine a graph branch of the code structure chain from the knowledge graph.

其中,目标代码结构模型中具有与运维人员发出的请求参数对应的标识,每个标识在目标代码结构模型中所在行的全部数据为该标识对应的代码结构链;每个代码结构链在知识图谱中具有对应的图谱分支。Among them, the target code structure model has identifiers corresponding to the request parameters issued by the operation and maintenance personnel, and all the data in the row where each identifier is located in the target code structure model is the code structure chain corresponding to the identifier; each code structure chain has a corresponding graph branch in the knowledge graph.

具体的,响应于获取一个请求参数,从目标代码结构模型中选择与该请求参数对应的标识所对应的代码结构链,并确定该代码结构链在知识图谱中对应的图谱分支。Specifically, in response to obtaining a request parameter, a code structure chain corresponding to an identifier corresponding to the request parameter is selected from a target code structure model, and a graph branch corresponding to the code structure chain in the knowledge graph is determined.

S542、基于所述图谱分支对代码结构链中的代码片段进行切片得到脚本程序。S542: Slice the code fragments in the code structure chain based on the graph branches to obtain a script program.

其中,代码结构链中包括与请求参数对应的标识所对应的代码片段,图谱分支包括对应目标类下调用的各方法和/或调用的程序类;通过图谱分支可对对应的代码结构链中的代码片段进行逐行切片,从而生成与每行代码对应的脚本程序,示例性的,脚本程序为groovy脚本。Among them, the code structure chain includes the code snippet corresponding to the identifier corresponding to the request parameter, and the graph branch includes the methods called under the corresponding target class and/or the called program class; the code snippet in the corresponding code structure chain can be sliced line by line through the graph branch, so as to generate a script program corresponding to each line of code. Exemplarily, the script program is a groovy script.

具体的,获取与请求参数对应的代码结构链与图谱分支;然后根据图谱分支对代码结构链中的代码片段进行逐行切片,从而生成与每行代码一一对应的脚本程序。Specifically, the code structure chain and graph branch corresponding to the request parameters are obtained; then the code fragments in the code structure chain are sliced line by line according to the graph branch, so as to generate a script program corresponding to each line of code.

S543、响应于所述脚本程序对应于第三方类,获取所述脚本程序对应的标识对应的数据快照得到目标数据快照。S543: In response to the script program corresponding to a third-party class, a data snapshot corresponding to an identifier corresponding to the script program is obtained to obtain a target data snapshot.

其中,代码片段中的部分代码可能属于第三方类下的代码,脚本程序基于对应的代码片段生成,故一个脚本程序有可能也会对应第三方类下的代码。Part of the code in the code snippet may belong to the code under the third-party class. The script program is generated based on the corresponding code snippet, so a script program may also correspond to the code under the third-party class.

具体的,生成一个脚本程序后,判断该脚本程序是否对应于第三方类,若是,则获取脚本程序对应的代码片段,然后确定该代码片段在目标代码结构模型中对应的标识,进一步确定该标识在目标代码结构模型中对应的数据快照,将确定的该数据快照记为目标数据快照。Specifically, after generating a script program, determine whether the script program corresponds to a third-party class. If so, obtain the code snippet corresponding to the script program, and then determine the identifier corresponding to the code snippet in the target code structure model, and further determine the data snapshot corresponding to the identifier in the target code structure model, and record the determined data snapshot as the target data snapshot.

S550、基于所述目标数据快照对所述目标应用程序进行调试。S550: Debug the target application based on the target data snapshot.

实施例六Embodiment 6

图10为本申请实施例六提供的一种应用程序调试方法流程图,参考图10,该方法对实施一中的“基于所述目标数据快照对所述目标应用程序进行调试”进行优化,需要说明的是,在本实施例未详述的部分,可参见其他实施例的表述;图10所示的一种应用程序调试方法,包括:FIG10 is a flow chart of an application debugging method provided in Embodiment 6 of the present application. Referring to FIG10 , the method optimizes “debugging the target application based on the target data snapshot” in Embodiment 1. It should be noted that for the parts not described in detail in this embodiment, reference may be made to the descriptions of other embodiments. The application debugging method shown in FIG10 includes:

S610、基于获取的目标应用程序的目录运行结构生成初级代码结构模型。S610: Generate a primary code structure model based on the acquired directory operation structure of the target application.

S620、基于所述初级代码结构模型确定目标类,分析所述目标类得到对应的知识图谱;基于所述目标类与构建的程序控制台处理获取的请求参数得到标识以及所述标识对应的数据快照。S620. Determine the target class based on the primary code structure model, analyze the target class to obtain the corresponding knowledge graph; obtain the request parameters obtained based on the target class and the constructed program console to obtain the identifier and the data snapshot corresponding to the identifier.

S630、基于所述请求参数、所述标识与所述数据快照更新所述初级代码结构模型得到目标代码结构模型;所述目标代码结构模型包括与多个所述请求参数一一对应的代码结构链;所述代码结构链在所述知识图谱中具有对应的图谱分支。S630. Based on the request parameters, the identifier and the data snapshot, the primary code structure model is updated to obtain a target code structure model; the target code structure model includes a code structure chain corresponding to a plurality of the request parameters one by one; the code structure chain has a corresponding graph branch in the knowledge graph.

S640、基于选择的代码结构链以及该代码结构链对应的图谱分支得到脚本程序,响应于所述脚本程序对应于第三方类,获取所述脚本程序对应的标识对应的数据快照得到目标数据快照。S640, obtaining a script program based on the selected code structure chain and the graph branch corresponding to the code structure chain, and in response to the script program corresponding to a third-party class, obtaining a data snapshot corresponding to an identifier corresponding to the script program to obtain a target data snapshot.

S651、获取所述目标数据快照在对应的所述代码结构链中的代码片段。S651: Obtain a code snippet in the code structure chain corresponding to the target data snapshot.

具体的,获取目标数据快照在对应的代码结构链中的代码片段。Specifically, a code snippet of the target data snapshot in the corresponding code structure chain is obtained.

S652、基于所述目标数据快照判断所述代码片段是否正确。S652: Determine whether the code snippet is correct based on the target data snapshot.

具体的,根据目标数据快照对代码片段进行分析,从而判断该代码片段是否正确。Specifically, the code snippet is analyzed according to the target data snapshot to determine whether the code snippet is correct.

S653、若否,修改所述代码片段,以对所述目标应用程序进行调试。S653: If not, modify the code snippet to debug the target application.

具体的,若判断该代码片段不正确,则对该代码片段进行修改,直至判断出代码片段正确,从而实现该代码片段的调试;若该代码片段,则获取下一个请求参数,并进行下一个请求参数对应的代码片段的调试。Specifically, if the code snippet is determined to be incorrect, the code snippet is modified until it is determined to be correct, thereby debugging the code snippet; if the code snippet is correct, the next request parameter is obtained, and the code snippet corresponding to the next request parameter is debugged.

应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

基于同样的发明构思,本公开实施例还提供了一种用于实现上述所涉及的应用程序调试方法的应用程序调试装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个应用程序调试装置实施例中的具体限定可以参见上文中对于应用程序调试方法的限定,在此不再赘述。Based on the same inventive concept, the embodiment of the present disclosure also provides an application debugging device for implementing the above-mentioned application debugging method. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in one or more application debugging device embodiments provided below can refer to the limitations on the application debugging method above, and will not be repeated here.

在一个实施例中,如图11所示,提供了一种应用程序调试装置,包括:In one embodiment, as shown in FIG11 , an application debugging device is provided, including:

初级模型生成模块,用于基于获取的目标应用程序的目录运行结构生成初级代码结构模型;A primary model generation module, used for generating a primary code structure model based on the obtained directory operation structure of the target application;

标识快照获取模块,用于基于所述初级代码结构模型确定目标类,分析所述目标类得到对应的知识图谱;基于所述目标类与构建的程序控制台处理获取的请求参数得到标识以及所述标识对应的数据快照;An identification snapshot acquisition module is used to determine the target class based on the primary code structure model, analyze the target class to obtain the corresponding knowledge graph; based on the target class and the constructed program console, process the obtained request parameters to obtain the identification and the data snapshot corresponding to the identification;

目标模型生成模块,用于基于所述请求参数、所述标识与所述数据快照更新所述初级代码结构模型得到目标代码结构模型;所述目标代码结构模型包括与多个所述请求参数一一对应的代码结构链;所述代码结构链在所述知识图谱中具有对应的图谱分支;A target model generation module, configured to update the primary code structure model based on the request parameter, the identifier and the data snapshot to obtain a target code structure model; the target code structure model includes a code structure chain corresponding to a plurality of the request parameters one by one; the code structure chain has a corresponding graph branch in the knowledge graph;

目标快照获取模块,用于基于选择的代码结构链以及该代码结构链对应的图谱分支得到脚本程序,响应于所述脚本程序对应于第三方类,获取所述脚本程序对应的标识对应的数据快照得到目标数据快照;A target snapshot acquisition module, used to obtain a script program based on a selected code structure chain and a graph branch corresponding to the code structure chain, and in response to the script program corresponding to a third-party class, obtain a data snapshot corresponding to an identifier corresponding to the script program to obtain a target data snapshot;

目标程序调试模块,用于基于所述目标数据快照对所述目标应用程序进行调试。The target program debugging module is used to debug the target application program based on the target data snapshot.

上述应用程序调试装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above application debugging device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图12所示。该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种应用程序调试方法。In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG12. The computer device includes a processor, a memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, an application debugging method is implemented.

本领域技术人员可以理解,图12中示出的结构,仅仅是与本公开方案相关的部分结构的框图,并不构成对本公开方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art will understand that the structure shown in FIG. 12 is merely a block diagram of a partial structure related to the scheme of the present disclosure, and does not constitute a limitation on the computer device to which the scheme of the present disclosure is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现上述各方法实施例中的步骤。In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

在一个实施例中,提供了一种计算机可读存储介质,如图13所示,其上存储有计算机程序,计算机程序被处理器执行时实现上述各方法实施例中的步骤。In one embodiment, a computer-readable storage medium is provided, as shown in FIG. 13 , on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

需要说明的是,本公开所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据。It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本公开所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic RandomAccess Memory,DRAM)等。本公开所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本公开所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present disclosure may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided by the present disclosure may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, etc., but are not limited thereto.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

以上所述实施例仅表达了本公开的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本公开专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本公开构思的前提下,还可以做出若干变形和改进,这些都属于本公开的保护范围。因此,本公开的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation methods of the present disclosure, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present disclosure, and these all belong to the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the attached claims.

Claims (10)

1. An application program debugging method, comprising:
generating a primary code structure model based on the acquired directory running structure of the target application program;
Determining a target class based on the primary code structure model, and analyzing the target class to obtain a corresponding knowledge graph; obtaining an identifier and a data snapshot corresponding to the identifier based on the target class and the request parameters obtained by processing the constructed program console;
Updating the primary code structure model based on the request parameters, the identification and the data snapshot to obtain an object code structure model; the object code structure model comprises code structure chains corresponding to a plurality of request parameters one by one; the code structure chain has corresponding spectrum branches in the knowledge spectrum;
Obtaining a script program based on the selected code structure chain and a map branch corresponding to the code structure chain, and obtaining a data snapshot corresponding to an identifier corresponding to the script program to obtain a target data snapshot in response to the script program corresponding to a third party class;
and debugging the target application program based on the target data snapshot.
2. The method of claim 1, wherein generating the primary code structure model based on the obtained directory run structure of the target application comprises:
Acquiring a catalog running structure of a target application program;
querying all programs in the directory operation structure to compress archive files to obtain an archive file set;
decompiling the archive file set to obtain program source codes;
And scanning the program source code to obtain a primary code structure model.
3. The method according to claim 1, wherein the obtaining the identifier based on the target class and the request parameters obtained by the processing of the built program console and the data snapshot corresponding to the identifier includes:
building a program console, adding the target class to the program console, and building a proxy class of the target class;
obtaining an identifier based on the request parameters obtained by the agent class processing, and adding the identifier into a mapping debugging context of the target application program;
and processing the code segments corresponding to the identifiers based on the program console to obtain the data snapshot, and extracting the identifiers from the mapping context.
4. A method according to claim 3, wherein the request parameters obtained based on the proxy class processing are identified, comprising:
Acquiring request parameters based on the proxy class;
determining the initiation time of the request parameters, and the target class and method corresponding to the request parameters;
And creating an identification corresponding to the request parameter based on the target class, the method, the request parameter and the initiation time.
5. The method according to claim 1, wherein the deriving script program based on the selected code structure chain and the map branches corresponding to the code structure chain comprises:
selecting a code structure chain from the object code structure model, and determining a map branch of the code structure chain from the knowledge map;
And slicing the code fragments in the code structure chain based on the map branches to obtain script programs.
6. The method of claim 1, wherein the debugging the target application based on the target data snapshot comprises:
acquiring code segments of the target data snapshot in the corresponding code structure chain;
judging whether the code segment is correct or not based on the target data snapshot;
if not, modifying the code segment to debug the target application program.
7. An application debugging device, the device comprising:
The primary model generation module is used for generating a primary code structure model based on the acquired directory running structure of the target application program;
the identification snapshot acquisition module is used for determining a target class based on the primary code structure model and analyzing the target class to obtain a corresponding knowledge graph; obtaining an identifier and a data snapshot corresponding to the identifier based on the target class and the request parameters obtained by processing the constructed program console;
The target model generation module is used for updating the primary code structure model based on the request parameters, the identification and the data snapshot to obtain a target code structure model; the object code structure model comprises code structure chains corresponding to a plurality of request parameters one by one; the code structure chain has corresponding spectrum branches in the knowledge spectrum;
the target snapshot acquisition module is used for acquiring a script program based on the selected code structure chain and a map branch corresponding to the code structure chain, and acquiring a data snapshot corresponding to an identifier corresponding to the script program to acquire a target data snapshot in response to the script program corresponding to a third party class;
and the target program debugging module is used for debugging the target application program based on the target data snapshot.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202410955057.0A 2024-07-17 2024-07-17 Application debugging method, device, equipment and storage medium Active CN118503138B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410955057.0A CN118503138B (en) 2024-07-17 2024-07-17 Application debugging method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410955057.0A CN118503138B (en) 2024-07-17 2024-07-17 Application debugging method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN118503138A CN118503138A (en) 2024-08-16
CN118503138B true CN118503138B (en) 2024-09-24

Family

ID=92231375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410955057.0A Active CN118503138B (en) 2024-07-17 2024-07-17 Application debugging method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118503138B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681897A (en) * 2015-11-06 2017-05-17 北京国双科技有限公司 Code debugging method and device
CN108319548A (en) * 2017-01-18 2018-07-24 阿里巴巴集团控股有限公司 A kind of program code adjustment method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8490064B2 (en) * 2004-05-21 2013-07-16 Oracle International Corporation Hierarchical debug
US9645913B2 (en) * 2011-08-03 2017-05-09 Daniel Geist Method and apparatus for debugging programs
CN110069404B (en) * 2019-03-27 2020-08-25 广东高云半导体科技股份有限公司 Code debugging method, device, equipment and medium
CN115599671A (en) * 2022-10-11 2023-01-13 平安银行股份有限公司(Cn) Application program debugging method, device, equipment and storage medium
CN115982719A (en) * 2022-12-31 2023-04-18 国网湖北省电力有限公司信息通信公司 Knowledge graph-based artificial intelligence intrusion and attack simulation system
CN117112393A (en) * 2023-06-25 2023-11-24 北京字跳网络技术有限公司 Application program debugging method and device, electronic equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681897A (en) * 2015-11-06 2017-05-17 北京国双科技有限公司 Code debugging method and device
CN108319548A (en) * 2017-01-18 2018-07-24 阿里巴巴集团控股有限公司 A kind of program code adjustment method and device

Also Published As

Publication number Publication date
CN118503138A (en) 2024-08-16

Similar Documents

Publication Publication Date Title
CN109376166B (en) Script conversion method, script conversion device, computer equipment and storage medium
US7191364B2 (en) Automatic root cause analysis and diagnostics engine
US10565089B2 (en) Identification of code features potentially associated with code behavior
CN114416481B (en) Log analysis method, device, equipment and storage medium
US10013335B2 (en) Data flow analysis in processor trace logs using compiler-type information method and apparatus
US10534700B2 (en) Separating test verifications from test executions
US10528456B2 (en) Determining idle testing periods
US20180267888A1 (en) Automatic regression identification
US11436133B2 (en) Comparable user interface object identifications
US7171651B1 (en) Method and system for remotely controlling the reporting of events occurring within a computer system
CN109992476A (en) A log analysis method, server and storage medium
Svajlenko et al. Big data clone detection using classical detectors: an exploratory study
CN107918564A (en) Data transmission exception processing method, device, electronic equipment and storage medium
US20190354468A1 (en) Code coverage module with testing function identifier
CN113760845A (en) Log processing method, system, device, client and storage medium
CN110830500A (en) Network attack tracking method and device, electronic equipment and readable storage medium
US11119899B2 (en) Determining potential test actions
CN113206849B (en) A ghidra-based vulnerability scanning method, device and related equipment
CN118503138B (en) Application debugging method, device, equipment and storage medium
de Oliveira et al. Debugging Scientific Workflows with Provenance: Achievements and Lessons Learned.
US11016867B2 (en) Test execution comparisons
Rabkin et al. A graphical representation for identifier structure in logs
CN114968725A (en) Task dependency relationship correction method and device, computer equipment and storage medium
CN109992475B (en) Log processing method, server and storage medium
CN109240906B (en) Database configuration information adaptation method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20240816

Assignee: Hangzhou Haolian Intelligent Technology Co.,Ltd.

Assignor: Hangzhou new China and the big Polytron Technologies Inc.

Contract record no.: X2024980042943

Denomination of invention: Application debugging methods, devices, equipment, and storage media

Granted publication date: 20240924

License type: Common License

Record date: 20241231

EE01 Entry into force of recordation of patent licensing contract