CN110032519A - Cloud function adjustment method, device, computer equipment and storage medium - Google Patents

Cloud function adjustment method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110032519A
CN110032519A CN201910325680.7A CN201910325680A CN110032519A CN 110032519 A CN110032519 A CN 110032519A CN 201910325680 A CN201910325680 A CN 201910325680A CN 110032519 A CN110032519 A CN 110032519A
Authority
CN
China
Prior art keywords
local
cloud function
debugging
cloud
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.)
Granted
Application number
CN201910325680.7A
Other languages
Chinese (zh)
Other versions
CN110032519B (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.)
Guangzhou Tencent Technology Co Ltd
Original Assignee
Guangzhou Tencent 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 Guangzhou Tencent Technology Co Ltd filed Critical Guangzhou Tencent Technology Co Ltd
Priority to CN201910325680.7A priority Critical patent/CN110032519B/en
Publication of CN110032519A publication Critical patent/CN110032519A/en
Application granted granted Critical
Publication of CN110032519B publication Critical patent/CN110032519B/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/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

This application involves a kind of cloud function adjustment method, device, computer equipment and storage mediums, this method comprises: receiving the local debugging instruction for creation to local cloud function in developer's tool;In response to the local debugging instruction, by developer's tool in this simulation cloud function operation environment;In the cloud function operation environment, the cloud function is loaded in local code;When obtaining the call request for being directed to the cloud function, execute in the local code;According to implementing result, the code of the cloud function is debugged.The scheme of the application, can be improved debugging efficiency.

Description

Cloud function adjustment method, device, computer equipment and storage medium
Technical field
The present invention relates to field of computer technology, more particularly to a kind of cloud function adjustment method, device, computer equipment And storage medium.
Background technique
With the rapid development of science and technology, various technologies are come into being, and cloud is then that one of them is widely used General technology.For example, cloud can be applied to sub- application, so that using cloud ability in sub- application.In order to realize cloud Provided cloud ability needs to develop cloud function.Wherein, in order to guarantee the normal operation of cloud function, to cloud function It is essential to debug.
In conventional method, developer is after writing cloud function code, it is necessary to which upload, which is deployed to behind cloud, just can be carried out test. So, one point code of every change just has to wait for uploading disposing carries out test verifying again, and entire debugging process is lengthy, Cause debugging efficiency relatively low.
Summary of the invention
Based on this, it is necessary to for the relatively low problem of debugging efficiency existing for conventional method, provide a kind of cloud function tune Method for testing, device, computer equipment and storage medium.
A kind of cloud function adjustment method, which comprises
In developer's tool, the local debugging instruction for creation to local cloud function is received;
In response to the local debugging instruction, by developer's tool in this simulation cloud function operation environment;
In the cloud function operation environment, the cloud function is loaded in local code;
When obtaining the call request for being directed to the cloud function, execute in the local code;
According to implementing result, the code of the cloud function is debugged.
A kind of cloud function debugging apparatus, described device include:
Trigger module is debugged, in developer's tool, receiving the local debugging for creation to local cloud function Instruction;
Running environment analog module is used in response to the local debugging instruction, by developer's tool in local Simulate cloud function operation environment;
Loading module, in the cloud function operation environment, loading the cloud function in local code;
Debugging module, for executing in the local code when obtaining the call request for being directed to the cloud function;Root According to implementing result, the code of the cloud function is debugged.
A kind of computer equipment, including memory and processor are stored with computer program, the meter in the memory When calculation machine program is executed by the processor, so that the processor executes following steps:
In developer's tool, the local debugging instruction for creation to local cloud function is received;
In response to the local debugging instruction, by developer's tool in this simulation cloud function operation environment;
In the cloud function operation environment, the cloud function is loaded in local code;
When obtaining the call request for being directed to the cloud function, execute in the local code;
According to implementing result, the code of the cloud function is debugged.
A kind of computer readable storage medium is stored with computer program on the computer readable storage medium, described When computer program is executed by processor, so that the processor executes following steps:
In developer's tool, the local debugging instruction for creation to local cloud function is received;
In response to the local debugging instruction, by developer's tool in this simulation cloud function operation environment;
In the cloud function operation environment, the cloud function is loaded in local code;
When obtaining the call request for being directed to the cloud function, execute in the local code;
According to implementing result, the code of the cloud function is debugged.
Above-mentioned cloud function adjustment method, device, computer equipment and storage medium, can in developer's tool It initiates to debug creation in the local of local cloud function, by developer's tool in this simulation cloud function operation environment;? In the cloud function operation environment, the cloud function is loaded in local code.So, if subsequent receive for this When the call request of cloud function, then the code in local for executing and being loaded can be called directly, and not have to call to cloud, it is real The local debugging to cloud function is showed.Due to cloud function locally debug, eliminate complicated deployment beyond the clouds, from And improve the debugging efficiency of cloud function.
Detailed description of the invention
Fig. 1 is the application scenario diagram of one embodiment medium cloud function adjustment method;
Fig. 2 is the flow diagram of one embodiment medium cloud function adjustment method;
Fig. 3 is the schematic diagram that panel is locally debugged in one embodiment;
Fig. 4 is that locally debugging triggers the interface schematic diagram of entrance in one embodiment;
Fig. 5 is the architecture diagram of one embodiment medium cloud function adjustment method;
Fig. 6 is the block diagram of one embodiment medium cloud function debugging apparatus;
Fig. 7 is the block diagram of another embodiment medium cloud function debugging apparatus;
Fig. 8 is the block diagram of computer equipment in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 is the application scenario diagram of one embodiment medium cloud function adjustment method.Referring to Fig.1, include in the application scenarios Terminal 110 and Cloud Server 120.Terminal 110 can be intelligent TV set, intelligent sound box, desktop computer or mobile terminal, move Dynamic terminal may include at least one in mobile phone, tablet computer, laptop, personal digital assistant and wearable device etc. Kind.
Terminal 110 can run developer's tool, and in developer's tool, receive for creation to local cloud function Local debugging instruction.Terminal 110 can be in response to the local debugging instruction, by developer's tool in this simulation Cloud function operation environment.Terminal 110 can load the cloud function in local code in the cloud function operation environment; When obtaining the call request for being directed to the cloud function, execute in the local code;According to implementing result, the cloud is debugged The code of function.It is appreciated that having debugged cloud letter according to the cloud function adjustment method in the embodiment of the present application in terminal 110 After several codes, that is, the test job to cloud function is completed, then, the cloud function that terminal 110 can finish debugging Code upload be deployed in Cloud Server 120 carry out using, for example, for son application call.
Fig. 2 is the flow diagram of one embodiment medium cloud function adjustment method.The present embodiment is mainly with the cloud function tune Method for testing is applied to be illustrated for computer equipment, which can be the terminal 110 in Fig. 1.Reference Fig. 2, this method specifically comprise the following steps:
S202 receives the local debugging instruction for creation to local cloud function in developer's tool.
Wherein, developer's tool (IDE, Integrated Development Environment) is that a kind of auxiliary is opened Send out the application software of computer program.It is appreciated that developer's tool is run in computer equipment.
In one embodiment, developer's tool can be sub- application developer tool.Sub- application developer tool, is pair Developer's tool that son application is developed and debugged.It should be noted that developer's tool is not limited to sub- application and development Person's tool.
Son application is the application program that can be realized in the environment that female application provides.Mother's application is carrying son application Application program, the realization for son application provide environment.Mother's application is native applications program.Native applications program is directly to run In the application program of operating system.
Cloud function is the code for running (i.e. Cloud Server) beyond the clouds, is not necessarily to management server, compiles in developer's tool It writes, upload can be run after being deployed to cloud.
It is appreciated that when developer's tool is sub- application developer tool, according to provided by each embodiment of the application It, being capable of quilt application calling after the cloud function deployment beyond the clouds that method debugging finishes.
It creates to local cloud function, refers to the cloud function that creation is locally registered in computer equipment.That is, for creation To local cloud function, the code of the cloud function is registered in the local of computer equipment.It is appreciated that for do not create to Local cloud function, local debugging processing can not be carried out to it, can only be debugged by cloud on line.
Local debugging instruction is used to indicate and is locally debugging cloud function.
Specifically, commissioning staff can carry out creation to local cloud function local based on the interface of developer's tool Debugging operations, computer equipment can be generated when detecting the local debugging operations for acting on the interface for cloud function Local debugging instruction.
It should be noted that the interface that local debugging operations are acted on, can be the sub- window for being embedded in developer's tool Mouthful, it is also possible to independent window.
It is appreciated that creation to local cloud function can be at least one.When creation to local cloud function is multiple When, computer equipment can the concurrently receive local debugging instruction for multiple creations to local cloud function.I.e., it is possible to simultaneously The debugging of hair ground is multiple to be created to local cloud function.Computer equipment can also be received only to single creation to local cloud function Local debugging instruction.That is, only debugging a creation every time to local cloud function.This is not construed as limiting.
S204, in response to local debugging instruction, by developer's tool in this simulation cloud function operation environment.
Wherein, cloud function operation environment is environment provided by the operation for cloud function.
It is appreciated that conventional method is to provide cloud function operation environment beyond the clouds, to debug to cloud function.And this Shen It please be developer's tool by running on computer equipment in embodiment, in this simulation cloud function operation of computer equipment Environment debugs cloud function in the local of computer equipment to realize.
Specifically, computer equipment can first pass through the running environment of one cloud function of developer's tool initialization, then Environmental variance when cloud function operation is added in the running environment of initialization, final cloud function operation environment is generated.Wherein, Environmental variance when cloud function operation refers to some environmental parameters that cloud function needs at runtime.
S206, in cloud function operation environment, load cloud function is in local code.
Wherein, cloud function is in local code, and as cloud function is when being created to the local of computer equipment, in local Register the code of the cloud function of storage.
Specifically, computer equipment can be targeted from the local debugging instruction of local acquisition and have been created to local The code of cloud function, and in the cloud function operation environment of this simulation, operation load cloud function is in local code.
S208 is executed when obtaining the call request for being directed to cloud function in local code.
Wherein, to the call request of cloud function, the code of cloud function is executed for request call cloud function.
It is appreciated that load cloud function is after local code, if subsequent receive needle in cloud function operation environment When to the call request of the cloud function, computer equipment can then call directly execute loaded in local code, without It is called with to cloud.
It should be noted that the call request mode for cloud function may include a variety of.
In one embodiment, the call request for cloud function may include the initiation of cloud function debugger for cloud letter Several call requests.Wherein, cloud function debugger is included in developer's tool, debugs for the code to cloud function Processing.
In one embodiment, when developer's tool is sub- application developer tool, for the call request of cloud function It can also include the call request for cloud function of sub- application simulation device triggering.It should be noted that being directed to the tune of cloud function It with request, can also be generated by other modes, be not limited to both cited modes.For example, when developer's tool opens When dynamic local debugging panel, call request can also be initiated for cloud function by locally debugging panel.Local debugging panel, is to use The interface of local debugging operations is carried out to cloud function in reception.
Wherein, sub- application simulation device is included in sub- application developer tool.Sub- application simulation device, it is current for simulating The son of exploitation applies the true Logical presentation in mother's application, can be on sub- application simulation device for the interface of the overwhelming majority Show correct state.It is appreciated that sub- application simulation device, is equivalent to simulation and operates normally son application when institute in mother's application The state of presentation.
In one embodiment, starting to execute cloud function in local code, computer equipment can be in cloud function Output starts prompt information in debugger.When detecting cloud function when local code is finished, computer equipment can be with The end of output prompt information in cloud function debugger.It is appreciated that after code starts to execute and be finished, output prompt Information can allow commissioning staff more quickly and accurately to hold code implementation progress, to avoid unnecessary time cost Waste, and then the efficiency of cloud function debugging is improved indirectly.
In one embodiment, computer equipment can will execute the generated user day during local code The output of will information.It is appreciated that including certain information content in the user journal information generated, the local of cloud function is debugged To booster action, to help to improve the accuracy of cloud function debugging.
S210 debugs the code of cloud function according to implementing result.
Wherein, implementing result is to execute cloud function in the local obtained result of code.
Specifically, computer equipment can show implementing result.Commissioning staff can be judged based on the implementing result of displaying Whether the code of the cloud function is debugged.Computer equipment can show cloud function debugger in developer's tool, For the code for the cloud function for needing to debug, commissioning staff can input corresponding debugging operations in cloud function debugger and refer to It enables.Computer equipment can be instructed in response to the debugging operations, carry out corresponding debugging processing to the code of cloud function.
In one embodiment, implementing result may include that function executes time-consuming at least one in function call information Kind.
Wherein, function executes time-consuming, refers to that cloud function is executed once the spent time in local code.Function tune With information, it is performed for describing cloud function in local code, the information of other cloud functions called.Other cloud functions Including creating to local cloud function and cloud cloud function.
In one embodiment, function call information can be shown in such a way that figure, text or picture and text combine.
Above-mentioned cloud function adjustment method can be initiated to creation in developer's tool in local cloud function Local debugging, by developer's tool in this simulation cloud function operation environment;In the cloud function operation environment, institute is loaded Cloud function is stated in local code.It so, can be straight if when the subsequent call request received for the cloud function The code in local for calling and executing and being loaded is connect, and does not have to call to cloud, realizes the local debugging to cloud function.Due to Cloud function is debugged locally, complicated deployment beyond the clouds is eliminated, to improve the debugging efficiency of cloud function.
Further, since the debugging of cloud function, is one of link in entire development process, in the tune for improving cloud function While trying efficiency, development efficiency has also been correspondinglyd increase.
In one embodiment, step S202 includes: to start local debugging panel in developer's tool;In local tune It tries in panel, shows the mark of creation to local cloud function;Panel is debugged by local, it is right for the mark institute shown to receive The local debugging instruction for the cloud function answered.
Wherein, local debugging panel is for receiving the interface for carrying out local debugging operations to cloud function.It is appreciated that Local debugging panel can be the child window for being embedded in developer's tool, is also possible to independent window, does not limit this.
Specifically, computer equipment can debug panel by local, obtain the mark of creation to local cloud function, and The mark of acquired cloud function is shown in locally debugging panel.Commissioning staff can be based on local debugging panel to displaying Mark carry out debugging relevant operation, generated with triggering computer equipment for cloud function corresponding to shown mark Local debugging instruction.
In one embodiment, commissioning staff can select one or more target identifications, and needle from the mark of displaying The target identification of selection is carried out debugging relevant operation, is generated with triggering computer equipment for cloud corresponding to target identification The local debugging instruction of function.
It in one embodiment, may include creating to the mark show area of local cloud function in local debugging panel Domain.Wherein, display area is identified, for showing the mark of creation to local cloud function.It is appreciated that in mark display area It can show the set of the mark created to local cloud function.
In one embodiment, the mark of cloud function, the title including cloud function.In other embodiments, cloud function Mark can also include the title and additional marking of cloud function.Additional marking is the attached label being added to cloud function.It can To understand, additional marking may include at least one of cloud function identity label and cloud function position mark.Cloud function identity Label emphasizes cloud function identity for showing.Cloud function position mark is the position for showing cloud function and being created.
In one embodiment, cloud function identity marks, and may include cloud shape icon.In one embodiment, cloud function Position mark may include local label and cloud label.Local label, for indicating cloud function creation to local.Cloud mark Note, for indicating cloud function creation to cloud.
It is appreciated that the same cloud function, can not only create to local, but also create to cloud.So for a cloud letter Several marks can not only correspond to the local label of displaying but also corresponding displaying cloud label.It should be noted that due to identifying show area It is the mark of the cloud function created to local shown in domain, so, when in the region including cloud function position mark, that , displaying one local label can be corresponded to for the mark of each cloud function shown in it, and only for also creating to cloud The mark of the cloud function at end, it is just corresponding to show cloud label.
It in one embodiment, can also include cloud function displays region in local debugging panel.
Wherein, cloud function displays region, for showing loaded cloud function in local code.Call request control zone Domain, for realizing the relevant processing of call request for being directed to cloud function.
In one embodiment, when receiving the trigger action for the mark of the cloud function in mark display area, In cloud function displays region, the corresponding cloud function that presents is in local code.
It in one embodiment, can be in cloud function displays when receiving the single-click operation for the mark of cloud function Open an interim label in region.It, can be in cloud function displays when receiving the double click operation for the mark of cloud function Open a fixed label in region.It is appreciated that interim label, refers to, provisional mark cloud function is opened, when this When the mark of cloud function is not belonging to selected state, then the interim label is no longer shown, but can show that new one is clicked The label for the cloud function chosen.Fixed label refers to that the label of cloud function fixed can be shown.Even if being appreciated that The mark of other cloud functions is selected, and the label of the cloud function still is able to be shown in cloud function displays region.
In one embodiment, computer equipment can be in response to the drag operation of the label to cloud function, by label (Tab) it drags on other labels to change tag sorting.Computer equipment may also respond to outside dragging label to window Operation, which is debugged in the form of a separate window.Label can be shown when dragging comprising label, the debugging of cloud function The screenshot of device and local debugging panel.
It is appreciated that in this case, when being again turned on the label of the cloud function in the locally main window of debugging panel, It will not show debugger and request control panel, and only show the prompt popped up and impression window is provided and withdraws the behaviour of window Make.The independent debugging window of the local debugging meeting automatic Display cloud function is selected in editing machine the cloud function.
In one embodiment, local debugging panel can be also used for receiving the finger of the calling relevant treatment for cloud function It enables, local panel of debugging can generate the call request for being directed to cloud function according to the instruction.It specifically, can in local debugging panel To provide call request control area, commissioning staff can carry out related to cloud function call in the call request control area Operation, with input for cloud function calling relevant treatment instruction.In one embodiment, relevant to cloud function call Operation, including input cloud function call request parameter.
It should be noted that each region for including in local debugging panel is (for example, mark display area, cloud function displays Region and call request control area) size can scale.Computer equipment, can be by the contracting when receiving scaling instruction It puts and targeted region is instructed to carry out corresponding scaling processing, to change the size in the region.For example, cloud function can carried out Calling relevant treatment when, amplify call request control area, so that the space for obtaining bigger is operated.
It in one embodiment, can also include the switch of automatic heating heavy duty in local debugging panel, if selection unlatching should The switch of automatic heating heavy duty, by the local cloud function of automatic heating heavy duty, facilitates user then when cloud function local file is changed Change code in debugging.
In one embodiment, time limit when free burial ground for the destitute setting function executes can also be made by oneself in locally debugging panel.When Being set as 0 indicates without prescribing a time limit.
Fig. 3 is the schematic diagram that panel is locally debugged in one embodiment.Referring to Fig. 3,302 be mark display area, inner Face illustrates the mark of creation to local cloud function, for example, " aa ", " aatest " are respectively cloud function of the creation to local Title, the cloud shape icon before " aa ", as additional marking, for showing that " aa " belongs to the identity of cloud function.Cloud function " aa " then corresponding local label L and cloud mark C, illustrate that cloud function " aa " had not only been created to local but also creation to cloud, 304 and are Cloud function displays region, 306 be call request control area.
In above-described embodiment, by the local debugging panel started in developer's tool, the local to cloud function is received Debugging instruction handles the debugging of cloud function in local to realize, improves debugging efficiency.In addition, passing through special local Panel is debugged, can be more concentrated at and local debugging processing operation is carried out to cloud function, eliminate complicated handover operation, avoid System further increases the debugging efficiency to cloud function in the upper caused wasting of resources of switching.
In one embodiment, described in developer's tool, starting local debugging panel includes: in developer's tool In, show the local debugging triggering entrance for cloud function;After obtaining to the triggering command of the local debugging triggering entrance, The local debugging panel of starting.
Wherein, local debugging triggering entrance, for triggering the local debugging panel of starting.
It is appreciated that computer equipment can directly show local debugging triggering entrance in developer's tool.It calculates Machine equipment can also after detecting the default specified operation made for developer's tool, show local debug trigger into Mouthful.
Specifically, commissioning staff can debug triggering entrance to the local and trigger, and computer equipment is available should Triggering command, and in response to the triggering command, start local debugging panel.
In one embodiment, in developer's tool, show the local debugging triggering entrance for cloud function include: Cloud function catalogue is shown in developer's tool;When detecting for the catalogue or the cloud function mesh in the cloud function catalogue When the specified operation of the cloud function root in record, the local debugging triggering entrance for cloud function is shown.
Wherein, cloud function catalogue is the directory information for the cloud function developed in developer's tool.It is appreciated that cloud letter Number record includes catalogue and each cloud function root.Catalogue is the catalogue of highest level in cloud function catalogue.Cloud function root Catalogue is the subprime directory of catalogue.
Specifically, the information of the available cloud function developed in developer's tool of computer equipment, according to exploitation The information of cloud function generates cloud function catalogue, and by cloud function displays in the editing machine in developer's tool.Commissioning staff can To carry out specified operation to cloud function catalogue, computer equipment can trigger displaying for cloud when detecting the specified operation The local debugging triggering entrance of function.Wherein, editing machine is included in developer's tool, is used for edit code.
In one embodiment, specifying operation includes clicking cloud function catalogue by right key.It is appreciated that in other embodiments In, specified operation can also include to operations such as the dragging of cloud function catalogue or long-pressings.It does not limit this.
In one embodiment, computer equipment can be when detecting the specified operation, and triggering generates set of choices and merges Show in developer's tool, in the option set to include the option that entrance is triggered corresponding to local debugging.It is directed to when receiving When the triggering command of the option, computer equipment can then trigger the corresponding local debugging triggering entrance of the option, to start this Debug panel in ground.
In one embodiment, commissioning staff can carry out specified operation, computer to the catalogue in cloud function catalogue Equipment can trigger the local debugging triggering entrance shown for cloud function when detecting the specified operation.In another reality It applies in example, commissioning staff can carry out specified operation to the cloud function root in cloud function catalogue, and computer equipment is detecting The local debugging triggering entrance for being directed to cloud function is shown to that can trigger when the specified operation.
Fig. 4 is that locally debugging triggers the interface schematic diagram of entrance in one embodiment.It is with developer's tool referring to Fig. 4 To be illustrated for sub- application developer tool.Cloud function catalogue 402, right button point are shown in the editing machine of developer's tool One of cloud function " miniprogram " is hit, then triggers generation option set, border circular areas 404 is the portion in option set Sort the enlarged drawing of item.As it can be seen that including " local debugging " option in option set from border circular areas 404, it is somebody's turn to do " local debugging " The i.e. corresponding local debugging triggering entrance of option.Commissioning staff can trigger entrance to the debugging and carry out trigger action, can start Local debugging panel shown in Fig. 3.
In above-described embodiment, in developer's tool, shows the local debugging triggering entrance for cloud function, opened with triggering Dynamic local debugging panel carries out local debugging to cloud function, i.e., can be achieved in developer's tool at the debugging to cloud function Reason, improves debugging efficiency.In addition, showing the local debugging triggering entrance for cloud function in developer's tool, passing through energy Local debugging panel is enough quickly started up, to improve debugging efficiency.
In one embodiment, this method further include: pass through developer's instrument start-up local debugging services program;According to this Ground debugging services program initializes local server;Local cloud function is created in the local server.The present embodiment In, in locally debugging panel, the mark for showing creation to local cloud function includes: the cloud that creation is obtained from local server The mark of function, and be showed in local debugging panel.
Wherein, local debugging services program is to be set in developer's tool and be used to carry out cloud function local tune Try the program of processing.
Specifically, computer equipment can be by developer's instrument start-up local debugging services program, can be according to local Debugging services program, in one local server of local initialization of the computer equipment.
It is appreciated that developer's tool can interact between the local server of initialization.Specifically, developer Tool can initiate the request to create of cloud function to local debugging services program, and local debugging services program can will be in request to create The cloud function of specified creation, carries out registration creation in local server.That is, local debugging services program can be by specified wound The code for the cloud function built, is mounted in local server, and the cloud function is created in local server to realize.
In one embodiment, local debugging services program can check this when receiving the request to create of cloud function The legitimacy of the cloud function of specified creation in request to create, when validity checking passes through, then by the cloud function in local clothes Registration creation is carried out in business device.
It is appreciated that local debugging services program can send creation result to developer's tool.Developer's tool is connecing After receiving the successful creation result of creation, the step of can executing again in developer's tool, start local debugging panel.? After the local debugging panel of starting, local panel of debugging can connect local server automatically, pull from local server It creates to the mark of local cloud function, and the mark of the cloud function pulled is showed in local debugging panel.
In other embodiments, can also be in developer's tool, after starting local debugging panel, execution passes through exploitation The step of person's instrument start-up local debugging services program, this is not construed as limiting.
It should be noted that developer's tool can the interaction between the local server of initialization be not limited in cloud The creation of function is handled.Developer's tool can send cloud function management request, the cloud function pipe to local debugging services program Reason request in addition to include in the request for localling create cloud function other than, can also include inquire or delete cloud function request.This Ground debugging services program can request to carry out corresponding administrative office to cloud function in local server according to the cloud function management Reason.
In above-described embodiment, by local debugging services program, local server is initialized, is originally being locallyd create with realizing Cloud function provides prerequisite for the local debugging to cloud function, so as to realize for creation to local cloud function Local debugging processing, improves debugging efficiency.
In one embodiment, described to debug panel by local, it receives for cloud function corresponding to the mark shown Local debugging instruction include: to obtain the target identification that selects from the mark of displaying;This is shown corresponding to the target identification Ground debugging switch;When detecting that being directed to the local debugging switches on operation, then generates and be directed to the target identification institute The local debugging instruction of corresponding cloud function.
Wherein, target identification is the mark of cloud function to be debugged.Local debugging switch, for controlling whether for cloud Function opens local debugging processing.Corresponding to the local debugging switch of target identification, for controlling whether to corresponding target Cloud function open local debugging processing.
It is appreciated that local debugging switch includes local debugging open state and local debugging both shapes of closed state State.Local debugging open state, for indicating to open the local debugging processing to cloud function.Local debugging closed state, is used for It indicates to close the local debugging to cloud function to handle, i.e., local debugging processing is not carried out to cloud function.
Specifically, commissioning staff can be from the mark of cloud function shown in local debugging panel, selection target mark. The available selected target identification of computer equipment, and correspond to the target identification and show local debugging switch.Debug people Member can carry out opening operation to local switch of debugging, and computer equipment, can be by local tune when detecting the opening operation Runin pass adjusts to local and debugs open state, and triggers generation and refer to for the local debugging of cloud function corresponding to target identification It enables.
It is appreciated that the target identification selected can be at least one.
In one embodiment, local debugging switch, can be for opening the check box locally debugged (checkbox). It (is equivalent to and detects behaviour is switched on to local debugging it is appreciated that when detecting the selection operation for the check box Make), computer equipment can then trigger the local debugging instruction generated for cloud function corresponding to target identification.In other realities It applies in example, local debugging switch can also be the slider bar or button for capableing of both ends switching.Wherein, one end of slider bar or button Corresponding local debugging open state, the corresponding local debugging closed state of the other end.
Local debugging switch in order to facilitate understanding, is explained now in conjunction with Fig. 3." local adjust is opened referring in Fig. 3 The check box of examination ", as local debugging switch can then trigger generation for target mark by choosing to the check box Know the local debugging instruction of corresponding cloud function.
It should be noted that debugging switch in the present embodiment to local corresponding to a cloud function and carrying out opening operation Later, it is equivalent to and local debugging function is opened to the creation to local cloud function, in this case, be somebody's turn to do getting to be directed to The call request of cloud function can just execute the cloud function in local code, if local debugging function is not turned on, to this The call request of cloud function can call the cloud function from cloud.
In one embodiment, when generate for cloud function corresponding to the target identification local debugging instruction it Afterwards, cloud function entrance file can be automatically opened in the debugger in developer's tool, facilitated user to open entry file and opened Beginning debugging breakpoints.Cloud function entrance file, for describing to need to open the file of which literary function.In developer's tool, The sidebar directory tree that can be automatically opened under panel navigates to entry file, and user is facilitated to be quickly found out functional dependence file.
In one embodiment, after detecting that being directed to the local debugging switches on operation, computer equipment The module that installation relies on can be checked whether there is, and provides warning prompt when no.
In one embodiment, when being not provided with the path node.js for needing the module of dependence to be mounted, computer is set It is standby to default the path node.js taken in system environment variable.The path node.js needs dependence to be mounted for describing The position of module.Commissioning staff can input in input frame shows the path node, and lower section shows corresponding node version number.It calculates Machine equipment can be monitored the path and node version number inputted in input frame, to monitor its legitimacy.
In above-described embodiment, by local debugging switch, it can flexibly, accurately control whether to debug cloud function Processing, improves the accuracy of debugging control.
In one embodiment, this method further include: show request method option set in the local debugging panel; When the option chosen from request method option set is triggering option manually, then required parameter configuring area is shown;It obtains The required parameter inputted in the required parameter configuring area;It is generated according to the required parameter of input for the cloud function Call request.
Wherein, request method option is the visable representation of request method.Request method refers to triggering for cloud function Call request mode.It include at least one request method option in request method option set.
It include triggering option manually in request method option set.Triggering manually, refers to and manually acts on local debugging Panel is in a manner of triggering and generate the call request for cloud function.Required parameter configuring area generates cloud function for configuring The required parameter of call request.
Specifically, commissioning staff can input required parameter in required parameter configuring area, and computer equipment obtains input Required parameter, and according to required parameter generate be directed to the cloud function call request.
It is appreciated that required parameter configuring area is contained in call request control area.In order to make it easy to understand, now in conjunction with Fig. 3 It is explained.Referring to Fig. 3, the 306a in call request control area 306 is required parameter configuring area.When asking for selection After asking mode option to be " manually triggering " option, required parameter can be inputted in the 306a of required parameter configuring area.Commissioning staff " calling " button 306b can be clicked after required parameter inputs, by locally debugging panel to cloud function " openapi " initiates call request.
In one embodiment, it when developer's tool is sub- application developer tool, is removed in request method option set It include manually other than triggering option can also include that simulator triggers option.When the choosing chosen from request method option set When item is that simulator triggers option, then simulator operation indicating is shown.
Wherein, simulator triggers option, for indicating the mode of simulator triggering.Simulator triggering, refers to and is answered by son The mode of the call request for cloud function is generated with simulator triggering.Simulator operation indicating, for prompting commissioning staff to arrive Simulator carries out trigger action relevant to the call request of cloud function is generated.It is appreciated that the option in elected is simulator When triggering option, required parameter configuring area can not be shown, and only show simulator operation indicating, can also retain required parameter The displaying of configuring area.
In one embodiment, local debugging panel can verify the legitimacy of the required parameter of input.Implement at one In example, local debug also provides template preservation entrance in panel, when detecting the trigger action to template preservation entrance, then The required parameter can be saved as into template, for directly pulling use later.It is appreciated that first save can pop up initialization The prompt information of template save location.
In above-described embodiment, by setting required parameter configuring area, customized required parameter can be received, so as to More flexiblely, more fully cloud function is called, in turn, according to abundant, suitable calling, can be improved cloud function The accuracy of debugging.
In one embodiment, developer's tool is sub- application developer tool;This method further include: described In local debugging panel, the set of simulation method of calling option is shown;It include that son applies call options in the set.This implementation In example, the call request for being directed to the cloud function according to the generation of the required parameter of input includes: that ought detect to be directed to When the son applies the selection operation of call options, according to the required parameter of input, generates son application and be directed to the cloud letter Several call requests.In the present embodiment, it is described when obtain be directed to the cloud function call request when, execute local described in Code includes: to obtain the context of female application of the sub- application by executing in the local code.
Wherein, method of calling is simulated, refers to that the mode of cloud function is called in simulation.It is appreciated that simulation method of calling, is used for Whom the object for indicating calling cloud function, that is, indicates to call cloud function.
Simulate in the set of method of calling option includes that son applies call options.Son apply call options, for indicate from Sub- application end calls cloud function.In one embodiment, simulation method of calling option can also include cloud function call option.
Specifically, when the option chosen from request method option set is triggering option manually, in the local tune The set of simulation method of calling option can also be shown in examination panel.Commissioning staff can be from the set of simulation method of calling option Middle selection option, when detection applies the selection operation of call options for the son, computer equipment then can be by locally adjusting Panel is tried according to the required parameter of input, generates the call request that son application is directed to the cloud function.Computer equipment can The call request is sent to local debugging services program by local panel of debugging, so that local debugging services program executes The code that the cloud function is created in local server, and by executing the code, obtain the context of female application of the sub- application Content.In one embodiment, the context of female application may include openid.Openid is uniquely corresponded in female application The mark of user identity.
In one embodiment, simulation method of calling option can also include cloud function call option.It is directed to when detecting When the selection operation of cloud function call option, in addition local panel of debugging can then be generated according to the required parameter of input Cloud function be directed to the cloud function call request.Computer equipment can be sent the call request by local debugging panel To local debugging services program, so that local debugging services program executes the code that the cloud function is created in local server.
It can be equally explained in conjunction with Fig. 3.Referring to Fig. 3, " simulation " that column has been corresponded to " from small routine end tune With " (having selected son using call options, it will be understood that small routine is the popular call of sub- application).It so, then can be with Call request is initiated from son application to cloud function.
In above-described embodiment, can customized simulation apply to the calling of cloud function so that call it is more abundant, Reduce debugging blind spot, to improve debugging accuracy.In addition, calling cloud function by son application, son can be directly acquired and answered The context of mother's application improves efficiency to save corresponding operation.
In one embodiment, step S204 includes: to start local debugging services program in developer's tool; By the local debugging services program, the running environment of cloud function is initialized;Environmental variance when cloud function operation is added to In the running environment of initialization, the cloud function operation environment in this simulation is obtained.
Wherein, environmental variance when cloud function operation refers to some environmental parameters that cloud function needs at runtime.
Specifically, computer equipment by local debugging services program, can first create the cloud function of an initialization Then environmental variance when cloud function operation is put into the running environment of initialization, obtains in this simulation by running environment Final cloud function operation environment.
In above-described embodiment, environmental variance when cloud function operation is added in the running environment of initialization, it can Cloud function operation environment is more accurately simulated local.
In one embodiment, step S206 includes: to load the cloud function at this in the cloud function operation environment The code on ground creates local cloud function example into cloud function case template.It is described when acquisition is directed to the cloud in the present embodiment When the call request of function, executing in the local code includes: to be obtained by the local cloud function example for described The call request of cloud function;In response to the call request, the code in the local cloud function example is executed.
Wherein, cloud function example, the substantially process for realizing cloud function performance.Wherein, cloud function case template, It is initial Templated cloud function example.It is appreciated that can just be obtained in the code of cloud function case template injection cloud function Final cloud function example.Local cloud function example is in the cloud function example locallyd create.
Specifically, computer equipment can create cloud function case template, in the cloud by local debugging services program In function operation environment, the cloud function is loaded in local code into cloud function case template, so that creation obtains local Cloud function example.For the call request of cloud function, then local cloud function example can be called, that is, pass through the local cloud letter Number example, obtains the call request for being directed to the cloud function.Local cloud function example can handle the call request, described in execution The code in local cloud function example.
In above-described embodiment, local cloud function example is created in cloud function operation environment, and then needle can received When to the call request of cloud function, the local cloud function example is all called, and does not have to call on cabling, and then can be improved debugging Efficiency.
In one embodiment, this method further include: establish the company between local cloud function example and local debugging panel It connects;Based on connection, the code in local cloud function example is shown in locally debugging panel;It obtains for the code addition shown Debugging breakpoints label.In the present embodiment, in response to call request, executing the code in local cloud function example includes: response It in call request, is marked according to debugging breakpoints, executes the code in local cloud function example.
Wherein, debugging breakpoints mark, and are the labels of debugging breakpoints, for marking the disconnected of debugging in the code of cloud function Point position.Breakpoint can allow program interrupt in the place of needs, to facilitate its analysis.
Specifically, local cloud function example can star debugging mode, the local debugging of the exposure local cloud function example Chained address.Computer equipment can connect local debugging chained address by local panel of debugging, to establish local debugging Connection between panel and local cloud function example.
In one embodiment, local cloud function example can expose that (WebSocket is one based on websocket protocol The agreement of full-duplex communication is carried out kind in single TCP connection) local debugging chained address.Computer equipment can pass through this Ground debugging panel connects local debugging chained address.In one embodiment, local debugging panel can be opened based on browser Originator tool connects local debugging chained address.In one embodiment, browser developers tool can be chrome (i.e. Chrome developer's tool is that one group be embedded in Chrome browser is used for webpage making and debugging to devtools Tool).
Computer equipment can show the local cloud function connected in locally debugging panel based on the connection of the foundation The code of cloud function in example, so as to carry out the other endpoint debugging processing of code level.Commissioning staff can be in local tune It tries to be directed to the code addition debugging breakpoints label shown in panel, computer equipment can be directed to by local debugging panel acquisition The debugging breakpoints label of the code addition of displaying.So, when the tune for being directed to cloud function by local cloud function case-based system When with request, computer equipment can be marked in response to call request according to debugging breakpoints, be executed in local cloud function example Code.
In above-described embodiment, based on the connection between local cloud function example and local debugging panel, it can make code can Depending on changing in locally debugging panel, to realize debugging breakpoints in code rank.And then it can be according to debugging breakpoints, more accurately Ground carries out debugging processing.
Fig. 5 is the architecture diagram of one embodiment medium cloud function adjustment method.Referring to Fig. 5, which includes that son application is opened Originator tool, local server and the big component part of local cloud function example three.It is answered in sub- application developer tool including son With simulator logical layer, local debugging panel and cloud function debugger.In one embodiment, cloud function debugger can be Serverless backup cloud function debugger ((Serverless Cloud Function, SCF).Cloud function debugger can be from Yun Kaifa Platform obtains key information relevant to debugging processing.It is then based on the key information, starts local debugging services program to create Build local server.Specifically, cloud function debugger can be executed Fig. 5 the step of respectively in (2) starts local debugging services Program, setting cloud function manager, is arranged cloud function gateway and exposes cloud function manager the code of carry cloud function Api interface and etc., to obtain in the local server for having locallyd create cloud function.It include cloud function in the local server Api interface service, cloud function manager and the cloud function gateway of manager.Based on the local server, can successively create Cloud function case template simultaneously loads, and initialization cloud function operation environment opens debugging mode, load creation to local cloud function Code into cloud function case template, wait it is to be instructed, thus creation obtain local cloud function example.The local cloud function example In be loaded with cloud function in local code.It is real that local debugging panel can connect local cloud function by cloud function debugger Example.Specifically, cloud function debugger can create browser developers tool (for example, chrome by step (3) Devtools, Chrome DevTools (Chrome developer's tool) are that one group be embedded in Chrome browser is used for net The tool of page production and debugging), and it is based on browser developers tool connectivity port, so that local panel of debugging be made to be connected to this Ground cloud function example, with the code in the local cloud function example described in locally debugging panels show, to carry out debugging breakpoints. The small routine simulator and local debugging panel that sub- application simulation device logical layer is supported can be initiated to cloud function debugger Call request.Wherein, small routine simulator can route cloud function call by sub- application simulation device logical layer through step (4) and ask It asks to cloud function debugger, to initiate call request, local panel of debugging can send debugging calling by interface through step (4) Information is to cloud function debugger, to initiate call request.Cloud function debugger can be held through step (5) according to call request calling Code in the cloud function example of row local, and obtain implementing result.Code in local cloud function example can also pass through cloud letter Number gateway initiates external request, to access outer net or call creation to other local cloud functions.In addition to this, in step (4) medium cloud function debugger can also expose http port, be called with retaining API to external browser, so that external clear Device of looking at is able to carry out cloud function management.
As shown in fig. 6, in one embodiment, providing a kind of cloud function debugging apparatus 600, which includes: to adjust Try trigger module 602, running environment analog module 604, loading module 606 and debugging module 608, in which:
Trigger module 602 is debugged, is adjusted for receiving in developer's tool for the local of creation to local cloud function Examination instruction.
Running environment analog module 604 is used in response to the local debugging instruction, by developer's tool at this Simulation cloud function operation environment.
Loading module 606, in the cloud function operation environment, loading the cloud function in local code.
Debugging module 608, for executing in the local generation when obtaining the call request for being directed to the cloud function Code;According to implementing result, the code of the cloud function is debugged.
In one embodiment, debugging trigger module 602 is also used in developer's tool, starts local debugging panel; In the local debugging panel, the mark of creation to local cloud function is shown;Panel is debugged by local, is received for exhibition The local debugging instruction of cloud function corresponding to the mark shown.
In one embodiment, debugging trigger module 602 is also used in developer's tool, shows the sheet for being directed to cloud function Ground debugging triggering entrance;After obtaining to the triggering command of the local debugging triggering entrance, start local debugging panel.
In one embodiment, debugging trigger module 602 is also used to show cloud function catalogue in developer's tool;Work as inspection When measuring the specified operation for the catalogue in the cloud function catalogue or the cloud function root in the cloud function catalogue, Show the local debugging triggering entrance for cloud function.
In one embodiment, the device 600 further include:
Creation module 603, for passing through developer's instrument start-up local debugging services program;According to the local debugging clothes Business program, initializes local server;Local cloud function is created in the local server;Debug trigger module 602 also For obtaining the mark of the cloud function of creation from local server, and it is showed in the local debugging panel.
In one embodiment, debugging trigger module 602 is also used to obtain the target identification selected from the mark of displaying; Local debugging switch is shown corresponding to the target identification;When detecting that being directed to the local debugging switches on operation, Then generate the local debugging instruction for cloud function corresponding to the target identification.
As shown in fig. 7, in one embodiment, the device 600 further include: creation module 603 and calling control module 607, in which:
Control module 607 is called, for showing request method option set in the local debugging panel;When from request The option chosen in mode option set is when triggering option manually, then to show required parameter configuring area;It obtains in the request The required parameter inputted in parameter configuration area;It is asked according to the generation of the required parameter of input for the calling of the cloud function It asks.
In one embodiment, developer's tool is sub- application developer tool.Control module 607 is called also to use In in the local debugging panel, the set of simulation method of calling option is shown;It include that choosing is called in son application in the set ?;When detecting for the sub selection operation for applying call options, according to the required parameter of input, generates son and answer With the call request for being directed to the cloud function;By executing in the local code, female application of the sub- application is obtained Context.
In one embodiment, running environment analog module 604 is also used in developer's tool, starts local adjust Try service routine;By the local debugging services program, the running environment of cloud function is initialized;By environment when cloud function operation Variable is added in the running environment of initialization, obtains the cloud function operation environment in this simulation.
In one embodiment, running environment analog module 604 is also used in the cloud function operation environment, loads institute Cloud function is stated in local code into cloud function case template, the local cloud function example of creation;Pass through the local cloud function Example obtains the call request for being directed to the cloud function;In response to the call request, execute in the local cloud function example The code.
In one embodiment, debugging module 608 is also used to establish the local cloud function example and the local debugging Connection between panel;Based on the connection, the generation in the local cloud function example is shown in locally debugging panel Code;Obtain the debugging breakpoints label for the code addition shown;It is disconnected according to the debugging in response to the call request Point label executes the code in the local cloud function example.
In one embodiment, debugging module 608 is also used to obtain the local debugging link of the local cloud function example Address;The local debugging chained address is connected by local panel of debugging, to establish the local debugging panel and local cloud Connection between function example.
Fig. 8 is the schematic diagram of internal structure of computer equipment in one embodiment.Referring to Fig. 8, which can be with It is terminal 110 in Fig. 1.The computer equipment includes processor, the memory, network interface, display connected by system bus Screen and input unit.Wherein, memory includes non-volatile memory medium and built-in storage.The computer equipment it is non-volatile Storage medium can storage program area and computer program.The computer program is performed, and processor may make to execute one kind Cloud function adjustment method.The processor of the computer equipment supports entire computer equipment for providing calculating and control ability Operation.Computer program can be stored in the built-in storage, when which is executed by processor, may make processor Execute a kind of cloud function adjustment method.The network interface of computer equipment is for carrying out network communication.The display of computer equipment Screen can be liquid crystal display or electric ink display screen etc..The input unit of computer equipment can be and cover on display screen Touch layer, be also possible to the key being arranged in terminal enclosure, trace ball or Trackpad, be also possible to external keyboard, touch-control Plate or mouse etc..The computer equipment can be personal computer, intelligent sound box, mobile terminal or mobile unit, mobile terminal Including at least one of mobile phone, tablet computer, personal digital assistant or wearable device etc..
It will be understood by those skilled in the art that structure shown in Fig. 8, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, cloud function debugging apparatus provided by the present application can be implemented as a kind of shape of computer program Formula, computer program can be run in computer equipment as shown in Figure 8, and the non-volatile memory medium of computer equipment can be deposited Storage forms each program module of the cloud function debugging apparatus, for example, debugging trigger module 602 shown in fig. 6, running environment mould Quasi- module 604, loading module 606 and debugging module 608.Computer program composed by each program module is by making based on this It calculates machine equipment and executes the step in the cloud function adjustment method of each embodiment of the application described in this specification, for example, meter Calculating machine equipment can be by the debugging trigger module 602 in cloud function debugging apparatus 600 as shown in FIG. 6 in developer's tool In, receive the local debugging instruction for creation to local cloud function.Computer equipment can simulate mould by running environment Block 604 is in response to the local debugging instruction, by developer's tool in this simulation cloud function operation environment.Computer Equipment can load the cloud function in local code by loading module 606 in the cloud function operation environment.It calculates Machine equipment can be executed by debugging module 608 when obtaining the call request for being directed to the cloud function in the local generation Code;According to implementing result, the code of the cloud function is debugged.
In one embodiment, a kind of computer equipment, including memory and processor are provided, memory is stored with meter Calculation machine program, when computer program is executed by processor, so that the step of processor executes above-mentioned cloud function adjustment method.Herein The step of cloud function adjustment method, can be the step in the cloud function adjustment method of above-mentioned each embodiment.
In one embodiment, a kind of computer readable storage medium is provided, computer program, computer journey are stored with When sequence is executed by processor, so that the step of processor executes above-mentioned cloud function adjustment method.Cloud function adjustment method herein Step can be the step in the cloud function adjustment method of above-mentioned each embodiment.
It should be noted that " first " and " second " etc. in each embodiment of the application is used only as distinguishing, and it is not used to The restriction of size, successive, subordinate etc..
It should be understood that although each step in each embodiment of the application is not necessarily to indicate according to step numbers Sequence successively execute.Unless expressly stating otherwise herein, there is no stringent sequences to limit for the execution of these steps, these Step can execute in other order.Moreover, in each embodiment at least part step may include multiple sub-steps or Multiple stages, these sub-steps or stage are not necessarily to execute completion in synchronization, but can be at different times Execute, these sub-steps perhaps the stage execution sequence be also not necessarily successively carry out but can with other steps or its The sub-step or at least part in stage of its step execute in turn or alternately.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read In storage medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, provided herein Each embodiment used in any reference to memory, storage, database or other media, may each comprise non-volatile And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (15)

1. a kind of cloud function adjustment method, which comprises
In developer's tool, the local debugging instruction for creation to local cloud function is received;
In response to the local debugging instruction, by developer's tool in this simulation cloud function operation environment;
In the cloud function operation environment, the cloud function is loaded in local code;
When obtaining the call request for being directed to the cloud function, execute in the local code;
According to implementing result, the code of the cloud function is debugged.
2. reception is for creation to originally the method according to claim 1, wherein described in developer's tool The local debugging instruction of the cloud function on ground includes:
In developer's tool, start local debugging panel;
In the local debugging panel, the mark of creation to local cloud function is shown;
Pass through the local local debugging instruction debugged panel, receive for cloud function corresponding to the mark shown.
3. according to the method described in claim 2, it is characterized in that, described in developer's tool, the local debugging panel of starting Include:
In developer's tool, the local debugging triggering entrance for cloud function is shown;
After obtaining to the triggering command of the local debugging triggering entrance, start local debugging panel.
4. according to the method described in claim 3, displaying is for cloud function it is characterized in that, described in developer's tool Local debugging triggers entrance
Cloud function catalogue is shown in developer's tool;
When the finger for detecting the catalogue or the cloud function root in the cloud function catalogue that are directed in the cloud function catalogue When operating surely, the local debugging triggering entrance for cloud function is shown.
5. according to the method described in claim 2, it is characterized in that, the method also includes:
Pass through developer's instrument start-up local debugging services program;
According to the local debugging services program, local server is initialized;
Local cloud function is created in the local server;
Described locally to debug in panel described, the mark for showing creation to local cloud function includes:
The mark of the cloud function of creation is obtained from local server, and is showed in the local debugging panel.
6. according to the method described in claim 2, reception is for displaying it is characterized in that, described debug panel by local The local debugging instruction of the corresponding cloud function of mark includes:
Obtain the target identification selected from the mark of displaying;
Local debugging switch is shown corresponding to the target identification;
When detecting that being directed to the local debugging switches on operation, then generate for cloud corresponding to the target identification The local debugging instruction of function.
7. according to the method described in claim 2, it is characterized in that, the method also includes:
Request method option set is shown in the local debugging panel;
When the option chosen from request method option set is triggering option manually, then required parameter configuring area is shown;
Obtain the required parameter inputted in the required parameter configuring area;
The call request for being directed to the cloud function is generated according to the required parameter of input.
8. the method according to the description of claim 7 is characterized in that developer's tool, is sub- application developer tool;
The method also includes:
In the local debugging panel, the set of simulation method of calling option is shown;It include that son application is called in the set Option;
It is described to include: for the call request of the cloud function according to the generation of the required parameter of input
When detecting for the sub selection operation for applying call options, according to the required parameter of input, son is generated Using the call request for being directed to the cloud function;
When the call request for being directed to the cloud function when acquisition, executing the code in local includes:
By executing in the local code, the context of female application of the sub- application is obtained.
9. the method according to claim 1, wherein it is described by developer's tool in this simulation cloud letter Counting running environment includes:
In developer's tool, start local debugging services program;
By the local debugging services program, the running environment of cloud function is initialized;
Environmental variance when cloud function operation is added in the running environment of initialization, the cloud function in this simulation is obtained Running environment.
10. method according to any one of claim 1 to 9, which is characterized in that described in the cloud function operation environment In, loading the cloud function in local code includes:
In the cloud function operation environment, the cloud function is loaded in local code into cloud function case template, creation Local cloud function example;
When the call request for being directed to the cloud function when acquisition, executing the code in local includes:
By the local cloud function example, the call request for being directed to the cloud function is obtained;
In response to the call request, the code in the local cloud function example is executed.
11. according to the method described in claim 10, it is characterized in that, the method also includes:
Establish the connection between the local cloud function example and the local debugging panel;
Based on the connection, the code in the local cloud function example is shown in locally debugging panel;
Obtain the debugging breakpoints label for the code addition shown;
It is described in response to the call request, the code executed in the local cloud function example includes:
It in response to the call request, is marked according to the debugging breakpoints, executes the generation in the local cloud function example Code.
12. according to the method for claim 11, which is characterized in that described to establish the local cloud function example and described Ground debugging panel between connection include:
Obtain the local debugging chained address of the local cloud function example;
The local debugging chained address is connected by local panel of debugging, to establish the local debugging panel and local cloud letter Connection between number example.
13. a kind of cloud function debugging apparatus, which is characterized in that described device includes:
Trigger module is debugged, in developer's tool, receiving the local debugging instruction for creation to local cloud function;
Running environment analog module is used in response to the local debugging instruction, by developer's tool in this simulation Cloud function operation environment;
Loading module, in the cloud function operation environment, loading the cloud function in local code;
Debugging module, for executing in the local code when obtaining the call request for being directed to the cloud function;According to holding Row is as a result, debug the code of the cloud function.
14. a kind of computer equipment, which is characterized in that including memory and processor, be stored with computer in the memory Program, when the computer program is executed by the processor, so that the processor perform claim requires any one of 1 to 12 The step of the method.
15. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, when the computer program is executed by processor, so that the processor perform claim requires described in any one of 1 to 12 The step of method.
CN201910325680.7A 2019-04-22 2019-04-22 Cloud function debugging method and device, computer equipment and storage medium Active CN110032519B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910325680.7A CN110032519B (en) 2019-04-22 2019-04-22 Cloud function debugging method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910325680.7A CN110032519B (en) 2019-04-22 2019-04-22 Cloud function debugging method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110032519A true CN110032519A (en) 2019-07-19
CN110032519B CN110032519B (en) 2022-07-19

Family

ID=67239630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910325680.7A Active CN110032519B (en) 2019-04-22 2019-04-22 Cloud function debugging method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110032519B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110837473A (en) * 2019-11-07 2020-02-25 腾讯科技(深圳)有限公司 Application program debugging method, device, terminal and storage medium
CN111162960A (en) * 2019-12-03 2020-05-15 支付宝实验室(新加坡)有限公司 Method and server for starting debugging panel
CN113176994A (en) * 2021-04-28 2021-07-27 中国工商银行股份有限公司 Mock data method and device based on function calculation
CN113760762A (en) * 2021-09-08 2021-12-07 北京房江湖科技有限公司 Method for simulating operating environment of applet, electronic device and storage medium
CN113971124A (en) * 2020-07-24 2022-01-25 腾讯科技(深圳)有限公司 Debugging method and device of sub-application, computer equipment and storage medium
CN114490336A (en) * 2021-12-28 2022-05-13 阿里云计算有限公司 Joint debugging test method, access system, front end and storage medium
CN114553688A (en) * 2020-11-25 2022-05-27 腾讯科技(深圳)有限公司 Cloud computing deployment method, device, equipment and computer readable storage medium
CN114996117A (en) * 2022-03-28 2022-09-02 湖南智擎科技有限公司 Client GPU application evaluation system and method for SaaS mode
CN117112394A (en) * 2023-06-28 2023-11-24 领悦数字信息技术有限公司 Method and system for debugging application developed based on server-free framework
CN117472784A (en) * 2023-12-25 2024-01-30 图灵人工智能研究院(南京)有限公司 Browser-based Serverless code online debugging method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120266135A1 (en) * 2011-01-03 2012-10-18 Ebay Inc. On-demand software test environment generation
CN108322458A (en) * 2018-01-30 2018-07-24 深圳壹账通智能科技有限公司 Web Application intrusion detections method, system, computer equipment and storage medium
CN109062658A (en) * 2018-06-29 2018-12-21 优刻得科技股份有限公司 Realize dispatching method, device, medium, equipment and the system of computing resource serviceization

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120266135A1 (en) * 2011-01-03 2012-10-18 Ebay Inc. On-demand software test environment generation
CN108322458A (en) * 2018-01-30 2018-07-24 深圳壹账通智能科技有限公司 Web Application intrusion detections method, system, computer equipment and storage medium
CN109062658A (en) * 2018-06-29 2018-12-21 优刻得科技股份有限公司 Realize dispatching method, device, medium, equipment and the system of computing resource serviceization

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
微信团队: "「小程序·云开发」支持云调用等功能更新", 《HTTPS://DEVELOPERS.WEIXIN.QQ.COM/COMMUNITY/DEVELOP/DOC/000C02105702082F9C68A24F35B801》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110837473A (en) * 2019-11-07 2020-02-25 腾讯科技(深圳)有限公司 Application program debugging method, device, terminal and storage medium
CN110837473B (en) * 2019-11-07 2023-08-22 腾讯科技(深圳)有限公司 Application program debugging method, device, terminal and storage medium
CN111162960A (en) * 2019-12-03 2020-05-15 支付宝实验室(新加坡)有限公司 Method and server for starting debugging panel
CN111162960B (en) * 2019-12-03 2022-12-02 支付宝实验室(新加坡)有限公司 Method and server for starting debugging panel
CN113971124A (en) * 2020-07-24 2022-01-25 腾讯科技(深圳)有限公司 Debugging method and device of sub-application, computer equipment and storage medium
CN114553688A (en) * 2020-11-25 2022-05-27 腾讯科技(深圳)有限公司 Cloud computing deployment method, device, equipment and computer readable storage medium
CN114553688B (en) * 2020-11-25 2023-07-14 腾讯科技(深圳)有限公司 Cloud computing deployment method, device, equipment and computer readable storage medium
CN113176994A (en) * 2021-04-28 2021-07-27 中国工商银行股份有限公司 Mock data method and device based on function calculation
CN113760762A (en) * 2021-09-08 2021-12-07 北京房江湖科技有限公司 Method for simulating operating environment of applet, electronic device and storage medium
CN113760762B (en) * 2021-09-08 2024-03-08 贝壳找房(北京)科技有限公司 Method for simulating operating environment of applet, electronic device and storage medium
CN114490336A (en) * 2021-12-28 2022-05-13 阿里云计算有限公司 Joint debugging test method, access system, front end and storage medium
CN114996117A (en) * 2022-03-28 2022-09-02 湖南智擎科技有限公司 Client GPU application evaluation system and method for SaaS mode
CN114996117B (en) * 2022-03-28 2024-02-06 湖南智擎科技有限公司 Client GPU application evaluation system and method for SaaS mode
CN117112394A (en) * 2023-06-28 2023-11-24 领悦数字信息技术有限公司 Method and system for debugging application developed based on server-free framework
CN117472784A (en) * 2023-12-25 2024-01-30 图灵人工智能研究院(南京)有限公司 Browser-based Serverless code online debugging method
CN117472784B (en) * 2023-12-25 2024-03-19 图灵人工智能研究院(南京)有限公司 Browser-based Serverless code online debugging method

Also Published As

Publication number Publication date
CN110032519B (en) 2022-07-19

Similar Documents

Publication Publication Date Title
CN110032519A (en) Cloud function adjustment method, device, computer equipment and storage medium
US10705942B1 (en) Simulated testing of API
US11449348B2 (en) Pre/post deployment customization
CN106844217B (en) Method and device for embedding point of applied control and readable storage medium
US20210034336A1 (en) Executing a process-based software application in a first computing environment and a second computing environment
US9459994B2 (en) Mobile application testing systems and methods
US8104020B2 (en) Method and system to automate software testing using sniffer side and browser side recording and a toolbar interface
US20190227917A1 (en) Adaptive system for mobile device testing
CN103984626B (en) A kind of method and device for generating test case script
CN108363587A (en) Application program operation and monitoring method, device, computer equipment and storage medium
US20140132571A1 (en) Automated testing of gesture-based applications
CN112464623A (en) RPA flow file generation method and device, computer equipment and storage medium
CN105955888A (en) Page debugging and previewing method and system
CN110119352A (en) UI adjustment method, device, computer equipment and the storage medium of application program
Grechanik et al. Creating GUI testing tools using accessibility technologies
CN111796799B (en) Sub-application development method and device, computer equipment and storage medium
US9727450B2 (en) Model-based software application testing
Grønli et al. Meeting quality standards for mobile application development in businesses: A framework for cross-platform testing
CN112231206A (en) Script editing method for application program test, computer readable storage medium and test platform
CN114625448A (en) Flow generation method and device combining RPA and AI, electronic equipment and storage medium
CN111414309B (en) Automatic test method of application program, computer equipment and storage medium
US11106571B2 (en) Identification of input object in a graphical user interface
CN109711124B (en) Method, apparatus, computer device and storage medium for managing mobile device
US11550990B2 (en) Machine first approach for identifying accessibility, non-compliances, remediation techniques and fixing at run-time
CN114936152A (en) Application testing method and device

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