CN103049385A - PHP (professional hypertext preprocessor) code debugging method and PHP code debugging system in cloud environment - Google Patents

PHP (professional hypertext preprocessor) code debugging method and PHP code debugging system in cloud environment Download PDF

Info

Publication number
CN103049385A
CN103049385A CN2012105902563A CN201210590256A CN103049385A CN 103049385 A CN103049385 A CN 103049385A CN 2012105902563 A CN2012105902563 A CN 2012105902563A CN 201210590256 A CN201210590256 A CN 201210590256A CN 103049385 A CN103049385 A CN 103049385A
Authority
CN
China
Prior art keywords
data
xhprof
tune
php
debug
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.)
Granted
Application number
CN2012105902563A
Other languages
Chinese (zh)
Other versions
CN103049385B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201210590256.3A priority Critical patent/CN103049385B/en
Publication of CN103049385A publication Critical patent/CN103049385A/en
Application granted granted Critical
Publication of CN103049385B publication Critical patent/CN103049385B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a PHP (professional hypertext preprocessor) code debugging method in a cloud environment. The method includes the steps: an Xhprof tool in a cloud server acquires a PHP code of an application program; the Xhprof tool acquires an environment variable in the PHP code of the application program; the Xhprof tool generates a debugging switch according to the environment variable; the Xhprof tool receives debugging data generated and uploaded by a client side according to the debugging switch, and stores the debugging data into a Bucket corresponding to the cloud server; and the Xhprof tool debugs the PHP code of the application program according to the uploaded debugging data. The invention further provides a PHP code debugging system in the cloud environment. The Xhprof for migrating open source projects is deployed on a cloud platform and is capable of debugging performances of PHP codes running in the cloud environment, so that users can optimize the codes conveniently, and debugging data storage and distinguishing of the debugging data of application programs are achieved while the problem of limitation on generated images is avoided.

Description

PHP code debugging method and system under a kind of cloud environment
Technical field
The present invention relates to cloud development technique field, particularly the PHP code debugging method and system under a kind of cloud environment.
Background technology
PHP language (Hypertext Preprocessor, hypertext pre-service) language is one of most popular Web development language.PHP can support the high strength web access simply like a cork,, exploitation simple to learn fast, stable performance and extremely web developer's favor.PHP or a kind of server end technology, the PHP language is carried out at server end, shows as the html language that the programmer can read, and does not need compilation process, and people just can read; Be that its source code need not carry out the scale-of-two compiling, can directly enter machine and be identified (need not derive from and be binary machine identifier) by machine.And in client, browser directly can be identified.Therefore extensively popularize in the application program of PHP language on the cloud development platform.On the cloud development platform for the PHP code provides efficient debugging scheme, for developer's work with very helpful.But in debugging, because the deletion tune-up data is asynchronous operation, so may have delay when deleting whole tune-up data, namely when tune-up data quantity is very large, all still can the display part data still all delete successfully after the deletion.
Summary of the invention
The present invention one of is intended to solve the problems of the technologies described above at least to a certain extent or provides at least a kind of useful commerce to select.
For this reason, first purpose of the present invention is to propose the hypertext pre-service language PHP code debugging method under a kind of cloud environment, with the storage that solves tune-up data, the tune-up data of distinguishing application program and the technical matters of synthetic image limit.Second purpose of the present invention is to propose the PHP code debugging system under a kind of cloud environment.
For achieving the above object, the embodiment of first aspect present invention has proposed the hypertext pre-service language PHP code debugging method under a kind of cloud environment, may further comprise the steps: application program is called the Xhprof instrument by the expansion of the PHP in the code; Described Xhprof instrument obtains the environmental variance of described application program; Described Xhprof instrument reads debug switch and judges whether described debug switch is opened; If described debug switch is opened, described Xhprof instrument start-up debugging generates tune-up data, and described tune-up data is stored among Bucket corresponding to described cloud server; Described cloud server generates debug results according to described tune-up data, and described debug results is turned back to described client, shows described debug results by described client to the user.
According to the hypertext pre-service language PHP code debugging method under the cloud environment of the embodiment of the invention, be deployed on the cloud platform by the increase income Xhprof of project of transplanting, can carry out the debugging optimization of performance to the php code that operates on the cloud environment, the commissioning staff can find by the debugging optimization tool performance bottleneck of application code, improves code quality.Solve the storage of tune-up data and distinguished the tune-up data of application program and the technical matters of synthetic image limit.
In one embodiment of the invention, described debug switch comprises Bucket name and corresponding time word string.
In one embodiment of the invention, described Xhprof instrument reads debug switch and judges that whether described debug switch is opened, and also further comprises: described Xhprof instrument judges whether the time substring in the described debug switch surpasses the current system time; If described Xhprof instrument was judged greater than the current system time, judge that then described debug switch lost efficacy; If described Xhprof instrument is judged less than or equal to the current system time, is then started described debugging.
In one embodiment of the invention, the PHP code debugging method under the described cloud environment also comprises: generate the identification information of described tune-up data, described identification information is used for distinguishing described tune-up data.
In one embodiment of the invention, described debug results comprises: described tune-up data, and corresponding identification information, form and/or the image of described tune-up data.
In one embodiment of the invention, described identification information comprises one or more in Main Domain, version number and the timestamp.
The embodiment of second aspect present invention has proposed the PHP code debugging system under a kind of cloud environment, comprising:
Cloud server, operation has the Xhprof instrument in the described cloud server, wherein, described Xhprof instrument by application program by the PHP code call in the code, be used for obtaining the environmental variance of described application program, read debug switch and judge whether described debug switch is opened, and Start-up and Adjustment generates tune-up data when described debug switch is opened, described cloud server is used for storing the tune-up data that described Xphrof generates, and generate debug results according to described tune-up data, and described debug results is turned back to described client; Described client is used for uploading the PHP code of described application program, and described debug results is shown to the user.。
According to the PHP code debugging system under the cloud environment of the embodiment of the invention, be deployed on the cloud platform by the increase income Xhprof of project of transplanting, can carry out the debugging optimization of performance to the php code that operates on the cloud environment, the commissioning staff can find by the debugging optimization tool performance bottleneck of application code, improves code quality.Solve the storage of tune-up data and distinguished the tune-up data of application program and the technical matters of synthetic image limit.
In one embodiment of the invention, described debug switch comprises Bucket name and corresponding time substring.
In one embodiment of the invention, described Xhprof instrument also is used for judging that whether the time substring of described debug switch is greater than the current system time, and judge during the time that described debug switch lost efficacy judging greater than current system, and start described debugging during the time less than or equal to current system judging.
In one embodiment of the invention, described Xhprof instrument also is used for generating the identification information of described tune-up data, and described identification information is used for distinguishing described tune-up data.
In one embodiment of the invention, described debug results comprises: described tune-up data, and corresponding identification information, form and/or the image of described tune-up data.
In one embodiment of the invention, described identification information comprises one or more in Main Domain, version number and the timestamp.
Additional aspect of the present invention and advantage in the following description part provide, and part will become obviously from the following description, or recognize by practice of the present invention.
Description of drawings
Above-mentioned and/or additional aspect of the present invention and advantage are from obviously and easily understanding becoming the description of embodiment in conjunction with following accompanying drawing, wherein:
Fig. 1 is the process flow diagram of the PHP code debugging method under the cloud environment of one embodiment of the invention;
Fig. 2 is the tune-up data generation of one embodiment of the invention and the synoptic diagram of access process; And
Fig. 3 is the synoptic diagram of the PHP code debugging system under the cloud environment of one embodiment of the invention.
Embodiment
The below describes embodiments of the invention in detail, and the example of described embodiment is shown in the drawings, and wherein identical or similar label represents identical or similar element or the element with identical or similar functions from start to finish.Be exemplary below by the embodiment that is described with reference to the drawings, be intended to for explaining the present invention, and can not be interpreted as limitation of the present invention.
In the present invention, unless clear and definite regulation and restriction are arranged in addition, broad understanding should be done in the terms such as term " installation ", " linking to each other ", " connection ", " fixing ", for example, can be to be fixedly connected with, and also can be to removably connect, or connect integratedly; Can be mechanical connection, also can be to be electrically connected; Can be directly to link to each other, also can indirectly link to each other by intermediary, can be the connection of two element internals.For the ordinary skill in the art, can understand as the case may be above-mentioned term concrete meaning in the present invention.In addition, in description of the invention, except as otherwise noted, the implication of " a plurality of " is two or more.
The below is described the flow process of the hypertext pre-service language PHP code debugging method under the cloud environment of the embodiment of the invention referring to figs. 1 to Fig. 2 respectively.
As shown in Figure 1, the hypertext pre-service language PHP code debugging method according under the cloud environment of the embodiment of first aspect present invention may further comprise the steps:
S101: application program is expanded the Xhprof instrument that calls in the cloud server by the PHP in the code.
In the present invention, to expansion and the correct of inner realization logic of Xhprof instrument, so that application program can be called the Xhprof instrument by the expansion of the PHP in the code.Xhprof is a layering PHP performance analysis tool of increasing income, and its report function other request number of times of level and various index comprises blocking time, CPU time and internal memory operating position.
In specific embodiment, the PHP expansion of Xhprof instrument can realize with the form of function, for example baexhprof_start () is set to debug in the program code and begins the place, baexhprof_end () is set to debug in the program code end, when program code runs to set interval, namely call the Xphrof instrument in the cloud server.
The S102:Xhprof instrument obtains the environmental variance of application program.
The S103:Xhprof instrument reads debug switch and judges whether debug switch is opened.
In one embodiment of the invention, debug switch is to generate and be injected in the environmental variance of application program by cloud service platform, and the user can according to concrete needs, exchange the time word string in the runin Central Shanxi Plain and make amendment.Therefore the design of debug switch should be followed following rule: for example, environmental variance is HTTP_BAE_ENV_XHPROF_SWITCH, then the key name of debug switch is BAE_ENV_XHPROF_SWITCH, key assignments is time word string corresponding to Bucket name and version, the Bucket(bucket of expression tune-up data storage, a kind of type of data structure be used to depositing user data) title and each version debug function expired time.During debugging, whether the Xhprof instrument judges time word string in the debug switch greater than the current system time, if greater than the current system time, then debug switch lost efficacy.If less than or equal to current system time, then Start-up and Adjustment.For example, the user wants to carry out one hour debugging, can be that current system adds 3600 seconds and enables debug switch on the time by time word string in the debug switch is set then, then can realize opening duration and be one hour debugging.
S104: if debug switch is opened, the debugging of Xhprof instrument start-up generates tune-up data, and tune-up data is stored among Bucket corresponding to cloud server.
Tune-up data is stored among the Bucket on the Cloud Server storage space, before the debugging beginning, by the user Bucket that stores this tune-up data is arranged.Because all Bucket of cloud storage can not bear the same name, therefore each uses the Bucket of the storage tune-up data that arranges by database storage user, and this Bucket information and version switching information is injected the environmental variance of application program.Transform the bottom expansion of Xhprof, obtain the environmental variance of debugged application program, determine which version of application programs is debugged, and tune-up data is deposited among the Bucket.Therefore need to be according to the environmental variance AK(Api Key of each application program), SK(Secret Key, be combined with aforementioned AK, authentication secret as use cloud platform service) connects the cloud storage, the tune-up data that request is produced uploads among the Bucket that sets, and generating the identification information of tune-up data by the Xphrof instrument, identification information is used for distinguishing tune-up data.Identification information comprises one or more in Main Domain, version number and the timestamp.In one embodiment of the invention, identification information is the filename of tune-up data, and the name form is: Main Domain+version number+timestamp.When showing tune-up data to the user, can distinguish different application according to Main Domain, distinguish the different editions of application program according to version number, can know the time that this debugging is carried out according to the time, and then whether distinguish this tune-up data be the tune-up data of up-to-date generation.In addition, when Bucket is set, can add the field that represents limit, use the authority of cloud platform service to arrange for the user.For example, this field can represent to have asked altogether several times after 0 of this user same day image generates service.If surpass 100 words then provide the bomp of " today, limit arrived, can not continue to generate ".Adding this field can limit user's rights of using, prevents the waste to the cloud server resource.
S105: cloud server generates debug results according to tune-up data, and debug results is turned back to client, shows debug results by client to the user.
In one embodiment of the invention, debug results comprises: tune-up data, and corresponding identification information, form and/or the image of tune-up data.In the implementation, the each several part in the debug results can successively generate in batches and show to the user as the case may be.For example, after debugging was finished, tune-up data was stored among the Bucket of user preset with the form of tabulation, each bar tune-up data comprises: between limber up period the operation of run time version consuming time, CPU takies, EMS memory occupation, the indexs such as function call frequency and performance, and the identification information of additional tune-up data.Cloud server returns the tabulation of tune-up data to client, and shows to the user by client.The user can be in tune-up data tabulation one or multinomial tune-up data carry out checking of form and/or image, this moment, the Xphrof instrument generated form and/or the image of user's needs according to tune-up data, and showed to the user by client.When showing form that tune-up data generates and image, the debug results by AK, SK and each application program of bucket name acquiring shows the user, and during displaying, debug results presents by modes such as form or images.The user can check debug results by client, comprises the corresponding identification information of tune-up data, data list and image etc.The user can compare the performance change point between the identical debugging twice, and the bottleneck of learning program according to each data message is specifically in what link or which part of program, to make things convenient for the code of user optimization oneself.Need to prove that above example is for convenience of explanation, and should not be construed as limitation of the present invention.Among the present invention, because the application program that the user will debug is to operate on the cloud platform, also can save to a certain extent the system resource of cloud environment.
As shown in Figure 2, in one embodiment of the invention, tune-up data generates, and after being stored into the storage of Cloud Server end, can obtain tune-up data by the front-end interface that provides under the cloud environment, and behind the operation image Core Generator, front end is shown to the user again.
According to the hypertext pre-service language PHP code debugging method under the cloud environment of the embodiment of the invention, be deployed on the cloud platform by the increase income Xhprof of project of transplanting, can carry out the debugging optimization of performance to the php code that operates on the cloud environment, the commissioning staff can find by the debugging optimization tool performance bottleneck of application code, improves code quality.Solve the storage of tune-up data and distinguished the tune-up data of application program and the technical matters of synthetic image limit.
In order to realize above-described embodiment, the present invention also proposes the PHP code debugging system under a kind of cloud environment.
As shown in Figure 3, the PHP code debugging system according under the cloud environment of second aspect present invention comprises: cloud server 310 and client 320.
Particularly, operation has the Xhprof instrument in the cloud server 310, application program is called the Xhprof instrument by the expansion of the PHP in the code, the Xhprof instrument obtains the environmental variance of application program, read debug switch and judge whether debug switch is opened, and Start-up and Adjustment generates tune-up data when debug switch is opened.After the generation, tune-up data is stored to the Bucket of cloud server 310 correspondences.Cloud server 310 generates debug results according to tune-up data, and debug results is turned back to client 320.
Debug switch is to generate and be injected in the environmental variance of application by cloud service platform, and the user can according to concrete needs, exchange the time word string in the runin Central Shanxi Plain and make amendment.Therefore the design of debug switch should be followed following rule: for example, environmental variance is HTTP_BAE_ENV_XHPROF_SWITCH, then the key name of debug switch is BAE_ENV_XHPROF_SWITCH, key assignments is time word string corresponding to Bucket name and version, Bucket title and each version debug function expired time of the storage of expression tune-up data.
Client 320 is used for uploading the PHP code of application program and debug results being shown to the user.
In one embodiment of the invention, the Xhprof instrument also is used for generating the identification information of tune-up data.Because all Bucket of cloud storage can not bear the same name, therefore each uses the Bucket of the storage tune-up data that arranges by database storage user, and this Bucket information and version switching information is injected the environmental variance of application program.Transform the bottom expansion of Xhprof, obtain the environmental variance of debugged application program, determine which version of application programs is debugged, and tune-up data is deposited among the Bucket.Therefore need to be according to the environmental variance AK(Api Key of each application program), SK(Secret Key, be combined with aforementioned AK, authentication secret as use cloud platform service) connects the cloud storage, the tune-up data that request is produced uploads among the Bucket that sets, and generated the identification information of tune-up data by the Xhprof instrument, identification information is used for distinguishing tune-up data, and identification information comprises one or more in Main Domain, version number and the timestamp.In one embodiment of the invention, identification information is the filename of tune-up data, and the name form is: Main Domain+version number+timestamp.When showing tune-up data to the user, can distinguish different application according to Main Domain, distinguish the different editions of application program according to version number, can know the time that this debugging is carried out according to the time, and then whether distinguish this tune-up data be the tune-up data of up-to-date generation.In addition, when Bucket is set, can add the field that represents limit, use the authority of cloud platform service to arrange for the user.For example, this field can represent to have asked altogether several times after 0 of this user same day image generates service.If surpass 100 words then provide the bomp of " today, limit arrived, can not continue to generate ".Adding this field can limit user's rights of using, prevents the waste to the cloud server resource.
During debugging, whether the Xhprof instrument judges time word string in the debug switch greater than the current system time, if greater than the current system time, then debug switch lost efficacy.If less than or equal to current system time, then Start-up and Adjustment.For example, when enabling debug switch, the time word string that arranges in the debug switch is that current system adds 3600 seconds on the time, then can realize opening duration and be one hour debugging.
After debugging is finished, generate debug results, comprising: between limber up period the operation of run time version consuming time, CPU takies, EMS memory occupation, the indexs such as function call frequency and performance.When showing form that tune-up data bears and image, the debug results by AK, SK and each application program of bucket name acquiring shows the user, and during displaying, debug results presents by modes such as form or images.The user can check debug results by client 320, comprises the corresponding identification information of tune-up data, form and/or image etc.And can compare the performance change point between the identical debugging twice, to make things convenient for the code of user optimization oneself.Among the present invention, because the application program that the user will debug is to operate on the cloud platform, also can save to a certain extent the system resource of cloud environment.
As shown in Figure 2, in one embodiment of the invention, tune-up data generates, and after being stored into the storage of Cloud Server end, can obtain tune-up data by the front-end interface that provides under the cloud environment, and behind the operation image Core Generator, front end is shown to the user again.
According to the PHP code debugging system under the cloud environment of the embodiment of the invention, be deployed on the cloud platform by the increase income Xhprof of project of transplanting, can carry out the debugging optimization of performance to the php code that operates on the cloud environment, the commissioning staff can find by the debugging optimization tool performance bottleneck of application code, improves code quality.Solve the storage of tune-up data and distinguished the tune-up data of application program and the technical matters of synthetic image limit.
Describe and to be understood in the process flow diagram or in this any process of otherwise describing or method, expression comprises module, fragment or the part of code of the executable instruction of the step that one or more is used to realize specific logical function or process, and the scope of preferred implementation of the present invention comprises other realization, wherein can be not according to order shown or that discuss, comprise according to related function by the mode of basic while or by opposite order, carry out function, this should be understood by the embodiments of the invention person of ordinary skill in the field.
In process flow diagram the expression or in this logic of otherwise describing and/or step, for example, can be considered to the sequencing tabulation for the executable instruction that realizes logic function, may be embodied in any computer-readable medium, use for instruction execution system, device or equipment (such as the computer based system, comprise that the system of processor or other can and carry out the system of instruction from instruction execution system, device or equipment instruction fetch), or use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can comprise, storage, communication, propagation or transmission procedure be for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The more specifically example of computer-readable medium (non-exhaustive list) comprises following: the electrical connection section (electronic installation) with one or more wirings, portable computer diskette box (magnetic device), random-access memory (ram), ROM (read-only memory) (ROM), the erasable ROM (read-only memory) (EPROM or flash memory) of editing, fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium even can be paper or other the suitable media that to print described program thereon, because can be for example by paper or other media be carried out optical scanning, then edit, decipher or process to obtain described program in the electronics mode with other suitable methods in case of necessity, then it is stored in the computer memory.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, a plurality of steps or method can realize with being stored in the storer and by software or firmware that suitable instruction execution system is carried out.For example, if realize with hardware, the same in another embodiment, can realize with the combination of each or they in the following technology well known in the art: have for the discrete logic of data-signal being realized the logic gates of logic function, special IC with suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that and realize that all or part of step that above-described embodiment method is carried is to come the relevant hardware of instruction to finish by program, described program can be stored in a kind of computer-readable recording medium, this program comprises step of embodiment of the method one or a combination set of when carrying out.
In addition, each functional unit in each embodiment of the present invention can be integrated in the processing module, also can be that the independent physics of unit exists, and also can be integrated in the module two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, also can adopt the form of software function module to realize.If described integrated module realizes with the form of software function module and during as independently production marketing or use, also can be stored in the computer read/write memory medium.
In the description of this instructions, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or the example in conjunction with specific features, structure, material or the characteristics of this embodiment or example description.In this manual, the schematic statement of above-mentioned term not necessarily referred to identical embodiment or example.And the specific features of description, structure, material or characteristics can be with suitable mode combinations in any one or more embodiment or example.
Although the above has illustrated and has described embodiments of the invention, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, those of ordinary skill in the art can change above-described embodiment in the situation that does not break away from principle of the present invention and aim within the scope of the invention, modification, replacement and modification.

Claims (12)

1. the hypertext pre-service language PHP code debugging method under the cloud environment is characterized in that, may further comprise the steps:
Application program is called the Xhprof instrument by the expansion of the PHP in the code;
Described Xhprof instrument obtains the environmental variance of described application program;
Described Xhprof instrument reads debug switch and judges whether described debug switch is opened;
If described debug switch is opened, described Xhprof instrument start-up debugging generates tune-up data, and described tune-up data is stored among Bucket corresponding to described cloud server; And
Described cloud server generates debug results according to described tune-up data, and described debug results is turned back to described client, shows described debug results by described client to the user.
2. the PHP code debugging method under the cloud environment as claimed in claim 1 is characterized in that, wherein, described debug switch comprises Bucket name and corresponding time substring.
3. the PHP code debugging method under the cloud environment as claimed in claim 1 or 2 is characterized in that, described Xhprof instrument reads debug switch and judges that whether described debug switch is opened, and also further comprises:
Described Xhprof instrument judges that whether time word string in the described debug switch is greater than the current system time;
If described Xhprof instrument was judged greater than the current system time, judge that then described debug switch lost efficacy; And
If described Xhprof instrument is judged less than or equal to the current system time, is then started described debugging.
4. such as the PHP code debugging method under each described cloud environment of claim 1-3, it is characterized in that, also comprise:
Generate the identification information of described tune-up data, described identification information is used for distinguishing described tune-up data.
5. such as the PHP code debugging method under each described cloud environment of claim 1-4, it is characterized in that described debug results comprises:
Described tune-up data, and corresponding identification information, form and/or the image of described tune-up data.
6. the PHP code debugging method under the cloud environment as claimed in claim 5 is characterized in that described identification information comprises one or more in Main Domain, version number and the timestamp.
7. the PHP code debugging system under the cloud environment is characterized in that, comprising:
Cloud server, operation has the Xhprof instrument in the described cloud server, wherein, described Xhprof instrument by application program by the PHP code call in the code, be used for obtaining the environmental variance of described application program, read debug switch and judge whether described debug switch is opened, and Start-up and Adjustment generates tune-up data when described debug switch is opened, described cloud server is used for storing the tune-up data that described Xphrof generates, and generate debug results according to described tune-up data, and described debug results is turned back to described client; And
Described client is used for uploading the PHP code of described application program, and described debug results is shown to the user.
8. the PHP code debugging system under the cloud environment as claimed in claim 7 is characterized in that, wherein, described debug switch comprises Bucket name and corresponding time substring.
9. the PHP code debugging system under the cloud environment as claimed in claim 8, it is characterized in that, described Xhprof instrument, also be used for judging that whether the time substring of described debug switch is greater than the current system time, and judge during the time that described debug switch lost efficacy judging greater than current system, and start described debugging during the time less than or equal to current system judging.
10. the PHP code debugging system under the cloud environment as claimed in claim 7 is characterized in that, described Xhprof instrument also is used for generating the identification information of described tune-up data, and described identification information is used for distinguishing described tune-up data.
11. the PHP code debugging system under the cloud environment as claimed in claim 10 is characterized in that described debug results comprises:
Described tune-up data, and corresponding identification information, form and/or the image of described tune-up data.
12. the PHP code debugging system under the cloud environment as claimed in claim 10 is characterized in that described identification information comprises one or more in Main Domain, version number and the timestamp.
CN201210590256.3A 2012-12-29 2012-12-29 PHP code debugging method and system under a kind of cloud environment Active CN103049385B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210590256.3A CN103049385B (en) 2012-12-29 2012-12-29 PHP code debugging method and system under a kind of cloud environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210590256.3A CN103049385B (en) 2012-12-29 2012-12-29 PHP code debugging method and system under a kind of cloud environment

Publications (2)

Publication Number Publication Date
CN103049385A true CN103049385A (en) 2013-04-17
CN103049385B CN103049385B (en) 2015-09-09

Family

ID=48062032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210590256.3A Active CN103049385B (en) 2012-12-29 2012-12-29 PHP code debugging method and system under a kind of cloud environment

Country Status (1)

Country Link
CN (1) CN103049385B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473431A (en) * 2013-09-25 2013-12-25 北京大学 Lightweight method for debugging hypertext preprocessor (PHP) program on line
CN103577326A (en) * 2013-11-05 2014-02-12 北京奇虎科技有限公司 DEBUG method and device
WO2015010568A1 (en) * 2013-07-24 2015-01-29 Tencent Technology (Shenzhen) Company Limited Method,apparatus and server for identity authentication
CN104503907A (en) * 2014-12-15 2015-04-08 深圳市盛弘电气有限公司 Remote debugging method and system for application program based on linux system
CN104580513A (en) * 2015-01-28 2015-04-29 奥林网络科技(宁波)有限公司 Remote software application research and development method and device based on cloud computing
CN104580514A (en) * 2015-01-28 2015-04-29 奥林网络科技(宁波)有限公司 Remote software application debugging method and device based on cloud computing
CN105183629A (en) * 2014-05-29 2015-12-23 北京基调网络系统有限公司 Diagnosis system and diagnosis method for analyzing performance of PHP application software, and performance management platform thereof
WO2016008398A1 (en) * 2014-07-16 2016-01-21 北京奇虎科技有限公司 Program performance test method and device
CN105607998A (en) * 2015-12-11 2016-05-25 成都新兴信息技术研究所 System and method for performing embedded software debug online
CN106126419A (en) * 2016-06-21 2016-11-16 浪潮电子信息产业股份有限公司 The adjustment method of a kind of application program and device
CN113064783A (en) * 2020-01-02 2021-07-02 北京京东尚科信息技术有限公司 Application program monitoring method, device and system, electronic equipment and readable medium
CN113656789A (en) * 2021-10-18 2021-11-16 北京新氧科技有限公司 Debugging tool starting control method and device, electronic equipment and storage medium
CN114578783A (en) * 2021-12-28 2022-06-03 上海繁易信息科技股份有限公司 Remote debugging method and system for industrial field equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020120721A1 (en) * 2000-12-22 2002-08-29 Sun Microsystems, Inc. Client capability detection in a client and server system
CN101097525A (en) * 2006-06-28 2008-01-02 上海宝信软件股份有限公司 Method for realizing integrated translate and edit surroundings under three layers structure
CN102196006A (en) * 2010-03-17 2011-09-21 中国移动通信集团公司 Open system for providing resources for application program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020120721A1 (en) * 2000-12-22 2002-08-29 Sun Microsystems, Inc. Client capability detection in a client and server system
CN101097525A (en) * 2006-06-28 2008-01-02 上海宝信软件股份有限公司 Method for realizing integrated translate and edit surroundings under three layers structure
CN102196006A (en) * 2010-03-17 2011-09-21 中国移动通信集团公司 Open system for providing resources for application program

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015010568A1 (en) * 2013-07-24 2015-01-29 Tencent Technology (Shenzhen) Company Limited Method,apparatus and server for identity authentication
CN103473431B (en) * 2013-09-25 2016-12-07 北京大学 A kind of method of the on-line debugging PHP program of lightweight
CN103473431A (en) * 2013-09-25 2013-12-25 北京大学 Lightweight method for debugging hypertext preprocessor (PHP) program on line
CN103577326A (en) * 2013-11-05 2014-02-12 北京奇虎科技有限公司 DEBUG method and device
CN103577326B (en) * 2013-11-05 2016-06-29 北京奇虎科技有限公司 DEBUG method and device
CN105183629B (en) * 2014-05-29 2018-06-22 北京基调网络系统有限公司 The diagnostic system and its method and performance management platforms of analysis PHP application software performances
CN105183629A (en) * 2014-05-29 2015-12-23 北京基调网络系统有限公司 Diagnosis system and diagnosis method for analyzing performance of PHP application software, and performance management platform thereof
WO2016008398A1 (en) * 2014-07-16 2016-01-21 北京奇虎科技有限公司 Program performance test method and device
CN105335280A (en) * 2014-07-16 2016-02-17 北京奇虎科技有限公司 Program performance test method and device
CN104503907A (en) * 2014-12-15 2015-04-08 深圳市盛弘电气有限公司 Remote debugging method and system for application program based on linux system
CN104503907B (en) * 2014-12-15 2017-08-29 深圳市盛弘电气股份有限公司 A kind of application program remote adjustment method and system based on Linux system
CN104580514A (en) * 2015-01-28 2015-04-29 奥林网络科技(宁波)有限公司 Remote software application debugging method and device based on cloud computing
CN104580513A (en) * 2015-01-28 2015-04-29 奥林网络科技(宁波)有限公司 Remote software application research and development method and device based on cloud computing
CN104580513B (en) * 2015-01-28 2018-11-02 宁波大掌柜物流服务有限公司 Software application based on cloud computing remotely researches and develops method and device
CN104580514B (en) * 2015-01-28 2018-11-02 宁波大掌柜物流服务有限公司 Software application remote debugging method based on cloud computing and device
CN105607998A (en) * 2015-12-11 2016-05-25 成都新兴信息技术研究所 System and method for performing embedded software debug online
CN106126419A (en) * 2016-06-21 2016-11-16 浪潮电子信息产业股份有限公司 The adjustment method of a kind of application program and device
CN113064783A (en) * 2020-01-02 2021-07-02 北京京东尚科信息技术有限公司 Application program monitoring method, device and system, electronic equipment and readable medium
CN113656789A (en) * 2021-10-18 2021-11-16 北京新氧科技有限公司 Debugging tool starting control method and device, electronic equipment and storage medium
CN114578783A (en) * 2021-12-28 2022-06-03 上海繁易信息科技股份有限公司 Remote debugging method and system for industrial field equipment
CN114578783B (en) * 2021-12-28 2024-04-09 上海繁易信息科技股份有限公司 Remote debugging method and system for industrial field device

Also Published As

Publication number Publication date
CN103049385B (en) 2015-09-09

Similar Documents

Publication Publication Date Title
CN103049385B (en) PHP code debugging method and system under a kind of cloud environment
DeAntoni et al. Timesquare: Treat your models with logical time
Beschastnikh et al. Leveraging existing instrumentation to automatically infer invariant-constrained models
Blanchet Automatic verification of correspondences for security protocols
Nouri et al. Statistical model checking QoS properties of systems with SBIP
Weiss et al. Tortoise: Interactive system configuration repair
Arcaini et al. AsmetaSMV: a way to link high-level ASM models to low-level NuSMV specifications
US20070234309A1 (en) Centralized code coverage data collection
CN105279278A (en) File searching method and device
Bartels et al. A CSP-based framework for the specification, verification, and implementation of adaptive systems
CN112104709A (en) Intelligent contract processing method, device, medium and electronic equipment
CN114706734B (en) Monitoring method and monitoring system for business application
CN113515278A (en) Low code model processing method, system, electronic device and storage medium
Gold et al. Generalized observational slicing for tree-represented modelling languages
Torunski et al. Code style analytics for the automatic setting of formatting rules in ides: A solution to the tabs vs. spaces debate
CN112612850A (en) Data synchronization method and device
Lascu et al. Automatic deployment of component-based applications
CN108897588B (en) Routing method and routing device for communication between modules
Deantoni Modeling the behavioral semantics of heterogeneous languages and their coordination
CN106776266A (en) The collocation method and terminal device of testing tool
de Figueiredo et al. Generating interaction test cases for mobile phone systems from use case specifications
Rosario Espada et al. A formal approach to automatically analyse extra‐functional properties in mobile applications
Guangquan et al. A business process of web services testing method based on uml2. 0 activity diagram
Balsamo et al. Software performance: state of the art and perspectives
CN115878860A (en) Menu generation method, device, server equipment and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant