Supercharge Your Innovation With Domain-Expert AI Agents!

A script dynamic debugging method, device and terminal

A dynamic debugging and scripting technology, applied in software testing/debugging, instrumentation, error detection/correction, etc., can solve problems such as high cost, cumbersome application switching operations, and long time-consuming regenerating applications, etc., to save time , Bug fixes, and debugging are convenient and trouble-free

Active Publication Date: 2021-01-19
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] It can be seen that in the prior art, the debugging of the script needs to regenerate the application program, therefore, it is difficult to realize the dynamic debugging of the script, and regenerating the application program takes a long time and costs a lot
[0006] In addition, in the formal environment, the latest scripts are generally pulled from the background, but in the debugging environment, it is not necessary to call the scripts from the background, which leads to differences in the way the scripts are loaded due to different operating environments, resulting in application It is cumbersome to switch between the debug version and the official version

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
  • A script dynamic debugging method, device and terminal
  • A script dynamic debugging method, device and terminal
  • A script dynamic debugging method, device and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0052] This embodiment provides a script dynamic debugging method. Specifically, the script described in this embodiment is a lua script, and the debugging method is specifically applied to an iOS simulator. Of course, in other implementation manners, other scripts may also be debugged based on the iOS operating system, or other scripts may be debugged based on other operating systems.

[0053] As a small and flexible scripting language, lua is used in many iOS applications. The iOS application app (application) is usually written in C++ language and object-c language, and needs to be generated by the xcode compiler. In the prior art, lua scripts can be applied to iOS-based apps through the wax framework. In the prior art, it is usually necessary to pack the lua script into the resource folder in the application, or download the lua script sent from the background through the network, but this solution will bring a lot of cost when debugging the program. It is difficult to r...

Embodiment 2

[0074] This embodiment provides a script dynamic debugging method. Specifically, the script described in this embodiment is a lua script, and the debugging method is applied to a real machine running an iOS operating system. Of course, in other implementation manners, other scripts may also be debugged based on the iOS operating system, or other scripts may be debugged based on other operating systems.

[0075] The methods include:

[0076] S201. Synchronize the directory where the script in the project file is located to the application package corresponding to the application calling the script.

[0077] In the real machine running the iOS operating system in this embodiment, the directory where the lua script in the project file is located may not be synchronized to the app package through a link, but other methods may be used to complete the synchronization.

[0078] This embodiment monitors whether the local lua script changes by setting a listening port in the applicat...

Embodiment 3

[0087] This embodiment provides a script dynamic debugging device, such as image 3 shown, including:

[0088] A script dynamic debugging device, comprising:

[0089] The synchronization module 301 is configured to synchronize the directory where the script in the project file is located to the application package corresponding to the application calling the script.

[0090] The monitoring module 302 is configured to monitor the running status of the application program.

[0091] Among them, the synchronization module 301 synchronizes the directory where the script in the project file is located to the application package corresponding to the application calling the script, so that if the script changes, the script referenced by the application can also change synchronously. Effect. The monitoring module 302 is used to monitor the running state of the application program. After the running state of the application program is monitored, the application program will generate ...

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 invention discloses a script dynamic-debugging method, system and terminal. Dynamic loading and dynamic debugging of a script are realized through carrying out synchronization of the script and monitoring running status of an application (app). In dynamic debugging realized by the method, a modification effect of the script can be observed without the need for project regeneration after the script is modified. In addition, according to the method, time required for project generation is saved, debugging for the script is enabled to be more convenient and easier, and a developer can be enabled to save a debugging site in real time in a process of dynamically debugging the script; and when a problem is found in a running process of the application, the script can be modified in time, themodified script can be loaded in a case of not breaking a real-time environment of the application, and thus existing script vulnerability can be more effectively repaired.

Description

technical field [0001] The invention relates to the field of script debugging, in particular to a script dynamic debugging method, device and terminal. Background technique [0002] With the rapid development of scripting languages, many applications involve the compilation and execution of scripts during operation. In the prior art, the following steps need to be performed when debugging scripts that depend on applications: [0003] First, you need to drag the folder where the modified script is located into the resource folder of the application; [0004] Then, after modifying the script, the application needs to be regenerated to make the modification of the script take effect. [0005] It can be seen that in the prior art, the debugging of the script needs to regenerate the application program, therefore, it is difficult to realize the dynamic debugging of the script, and regenerating the application program takes a long time and costs a lot. [0006] In addition, in t...

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
IPC IPC(8): G06F11/36
CPCG06F11/3624G06F11/3636
Inventor 陈晓波解辉
Owner TENCENT TECH (SHENZHEN) CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More