Font Size: a A A

Design And Implementation Of Python Remote Debugging Tool

Posted on:2021-08-28Degree:MasterType:Thesis
Country:ChinaCandidate:F T HuFull Text:PDF
GTID:2518306476960189Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the rapid development of software engineering technology and the increasing size of software,eliminating software defects has become an extremely arduous task in software engineering.Software debugging is the process of locating and solving software defects.In order to ensure the stable operation of complex software systems,R&D personnel need to carry out detailed debugging of the various functions of the system,which will occupy a lot of project time.When the program cannot be started locally,there is no project source code,and the program error is not local,the R&D personnel need to debug the program remotely.The traditional remote debugging tools download the source code locally and then compile it.It can neither restore the error site nor adapt to the production environment without source code.The internship company used the Python language as a script to develop all game clients and servers.In order to improve the debugging efficiency of large-scale Python systems and adapt to the debugging of production environments,enterprises have put forward the need to develop a Python remote debugging tool.The debugging tools require graphical debugging,remote connection debugging and data monitoring to meet the debugging requirements of the production environment.Based on the working principle of Python,this article designs a remote debugging tool for Python.The design of this tool is mainly divided into three modules: the debugging module realizes functions such as memory analysis and function debugging through direct dialogue with the GC,the module supports continuous debugging,which can ensure the debugging of the program under normal operation;the communication module is designed through the architecture,Achieve cluster connection,multi-protocol universal connection,the module can connect to the program deployed in a cluster in the production environment,the multi-protocol connection is compatible with most Python system environments;the monitoring module realizes real-time reporting and monitoring of system information based on the TSDB database,The module uses TSDB to store data,which can not only ensure the capacity,but also meet a certain real-time.Finally,this article deploys the tool and the Python test program to the Windows and Linux environments respectively,and tests the connection universality and debugging functionality of the designed and implemented Python remote debugging tool.The test results show that the tool has reached the design goal.
Keywords/Search Tags:Debugging tool, Python, Cluster, GC
PDF Full Text Request
Related items