Content of the invention
Embodiments provide a kind of code debugging method and debugging system, ensure that the safety of source code.
Embodiment of the present invention first aspect provides a kind of code debugging method, and described code debugging method is applied to debug
System, described debugging system includes debugging machine, CD writers, has the source code of application program to be measured, described tune in described debugging machine
Test-run a machine is the virtual machine in cloud computing system, and methods described includes:
Described CD writers obtain the executable file of described application program to be measured, and described CD writers are by described application journey to be measured
The loading of executed file of sequence is to by commissioning equipment;
Described debugging machine is debugged to the application program described to be measured on the described equipment by commissioning, and enables in debugging
Security management and control strategy, described security management and control strategy be used for preventing described by commissioning equipment from described debugging machine download described to be measured should
Source code with program.
In conjunction with the embodiment of the present invention in a first aspect, in the first embodiment of embodiment of the present invention first aspect,
Described security management and control strategy includes at least one of: the data message exceeding pre-set length threshold can not pass through, and transmits frequency
The data message exceeding predeterminated frequency threshold value can not pass through, and can not pass through containing the default data message forbidding instructing.
In conjunction with the first embodiment of the first aspect of the embodiment of the present invention, the of embodiment of the present invention first aspect
In two kinds of embodiments, described security management and control policy deployment described by commissioning equipment thin terminal corresponding with described debugging machine it
Between communication line on, or be deployed on virtual machine monitor, or be deployed between described debugging machine and described thin terminal
On the network of communication.
Embodiment of the present invention second aspect provides a kind of debugging system, and described debugging system includes debugging machine, CD writers,
There is the source code of application program to be measured, described debugging machine is the virtual machine in cloud computing system in described debugging machine;
Described CD writers include:
Acquiring unit, for obtaining the executable file of described application program to be measured;
Download unit, for by the loading of executed file of described application program to be measured to by commissioning equipment;
Described debugging machine includes:
Debugging unit, for debugging to the application program described to be measured on the described equipment by commissioning;
Security management and control unit, for enabling bursting tube when described debugging unit is debugged to described application program to be measured
Control strategy, described security management and control strategy is used for preventing described being downloaded described application program to be measured by commissioning equipment from described debugging machine
Source code.
In conjunction with the second aspect of the embodiment of the present invention, in the first embodiment of embodiment of the present invention second aspect,
Described security management and control strategy includes at least one of: the data message exceeding pre-set length threshold can not pass through, and transmits frequency
The data message exceeding predeterminated frequency threshold value can not pass through, and can not pass through containing the default data message forbidding instructing.
In conjunction with the first embodiment of the second aspect of the embodiment of the present invention, the of embodiment of the present invention second aspect
In two kinds of embodiments, described security management and control policy deployment described by commissioning equipment thin terminal corresponding with described debugging machine it
Between communication line on, or be deployed on virtual machine monitor, or be deployed between described debugging machine and described thin terminal
On the network of communication.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
The executable file of application program to be measured in the embodiment of the present invention, is obtained by CD writers, and by application program to be measured
Loading of executed file to by commissioning equipment, then debugging machine is adjusted to by the application program to be measured on commissioning equipment
Examination, and enable security management and control strategy in debugging, security management and control strategy is used for preventing to be measured from the download of debugging machine by commissioning equipment
The source code of application program.In the embodiment of the present invention, the executable file of application program to be measured is downloaded to by commissioning by CD writers
Equipment, in whole debugging process, debugging machine only needs to send debugging instruction to by commissioning equipment, and machine of debugging is setting to by commissioning
Standby upper application program to be measured can enable security management and control strategy when debugging, can by commissioning equipment under the restriction of security management and control strategy
To obtain the debugging instruction that debugging machine sends, but the source code on debugging machine cannot be downloaded, this ensures that there source code
Safety.
The embodiment of the present invention third aspect provides another kind of code debugging method, and described code debugging method is applied to adjust
Test system, described debugging system includes debugging machine, cloud management platform, and described debugging machine is the virtual machine in cloud computing system, institute
The method of stating includes:
Described debugging machine sends debugging application to described cloud management platform;
After described cloud management platform receives described debugging application, open the control net between source code volume and described debugging machine
Close;
Described debugging machine passes through described control gateway and rolls up, from described source code, the source code obtaining application program to be measured, by institute
State the source code of application program to be measured, described debugging machine is debugged to described application program to be measured, and enable peace in debugging
Full management and control strategy, described security management and control strategy is used for preventing being downloaded described application program to be measured by commissioning equipment from described debugging machine
Source code.
In conjunction with the third aspect of the embodiment of the present invention, in the first embodiment of the embodiment of the present invention third aspect,
Before described debugging machine sends debugging application to described cloud management platform, described debugging machine can by described application program to be measured
Execution file download is on the described equipment by commissioning.
In conjunction with the third aspect of the embodiment of the present invention, in the second embodiment of the embodiment of the present invention third aspect,
Before the control gateway that described cloud management platform is opened between described source code volume and described debugging machine, also include:
The local volume of described debugging machine closed by described cloud management platform, to prevent after described control gateway is opened, described
The source code of the application program described to be measured obtaining is downloaded to described local volume by debugging machine.
In conjunction with the second embodiment of the embodiment of the present invention third aspect, the 3rd of the embodiment of the present invention third aspect the
Plant in embodiment, methods described also includes:
After debugging terminates, the control gateway between described source code volume and described debugging machine closed by described cloud management platform,
Remove the caching of described debugging machine, recover the local volume of described debugging machine;
Described debugging machine stops enabling described security management and control strategy.
In conjunction with the third aspect of the embodiment of the present invention, or the first embodiment of the third aspect, or the of the third aspect
Two kinds of embodiments, or the third embodiment of the third aspect, in the 4th kind of embodiment party of the embodiment of the present invention third aspect
In formula, described security management and control strategy includes at least one of: the data message exceeding pre-set length threshold can not pass through, transmission
The data message that frequency exceedes predeterminated frequency threshold value can not pass through, and can not lead to containing the default data message forbidding instructing
Cross.
In conjunction with the 4th kind of embodiment of the embodiment of the present invention third aspect, the 5th of the embodiment of the present invention third aspect the
Plant in embodiment, described security management and control policy deployment is between the described thin terminal corresponding with described debugging machine by commissioning equipment
Communication line on, or be deployed on virtual machine monitor, or be deployed between described debugging machine and described thin terminal logical
On the network of letter.
Embodiment of the present invention fourth aspect provides another kind of debugging system, and described debugging system includes debugging machine, Yun Guan
Platform, described debugging machine is the virtual machine in cloud computing system;
Described debugging machine includes:
Debugging application unit, for sending debugging application to described cloud management platform;
Described cloud management platform includes:
Receiving unit, for receiving the described debugging application that described debugging application unit sends;
Processing unit, for, after described receiving unit receives described debugging application, opening source code volume and described debugging
Control gateway between machine;
Described debugging machine also includes:
Source code acquiring unit, for controlling gateway to roll up the source generation obtaining application program to be measured from described source code by described
Code;
Debugging unit, the source code of the application program described to be measured for being obtained according to described source code acquiring unit, to institute
State application program to be measured to be debugged;
Security management and control unit, for enabling security management and control plan when described debugging unit is debugged to described application program to be measured
Slightly, described security management and control strategy is used for the source generation preventing from being downloaded described application program to be measured from described debugging machine by commissioning equipment
Code.
In conjunction with the fourth aspect of the embodiment of the present invention, in the first embodiment of embodiment of the present invention fourth aspect,
Described debugging machine also includes:
Download unit, before sending debugging application in described debugging application unit to described cloud management platform, by institute
The loading of executed file stating application program to be measured is on the described equipment by commissioning.
In conjunction with the fourth aspect of the embodiment of the present invention, in the second embodiment of embodiment of the present invention fourth aspect,
Described processing unit is additionally operable to:
Before opening the control gateway between described source code volume and described debugging machine, close the local of described debugging machine
Volume, to prevent after described control gateway is opened, the source code of the application program described to be measured obtaining is downloaded by described debugging machine
To described local volume.
In conjunction with the second embodiment of embodiment of the present invention fourth aspect, the 3rd of embodiment of the present invention fourth aspect the
Plant in embodiment, described processing unit is additionally operable to:
After debugging terminates, close the control gateway between described source code volume and described debugging machine, remove described debugging machine
Caching, recover described debugging machine local volume;
Described security management and control unit is additionally operable to:
Close the control gateway between described source code volume and described debugging machine in described processing unit, remove described debugging machine
Caching, recover described debugging machine local volume after, stop enable described security management and control strategy.
In conjunction with the fourth aspect of the embodiment of the present invention, or the first embodiment of fourth aspect, or the of fourth aspect
Two kinds of embodiments, or the third embodiment of fourth aspect, in the 4th kind of embodiment party of embodiment of the present invention fourth aspect
In formula, described security management and control strategy includes at least one of: the data message exceeding pre-set length threshold can not pass through, transmission
The data message that frequency exceedes predeterminated frequency threshold value can not pass through, and can not lead to containing the default data message forbidding instructing
Cross.
In conjunction with the 4th kind of embodiment of the fourth aspect of the embodiment of the present invention, the of embodiment of the present invention fourth aspect
In five kinds of embodiments, described security management and control policy deployment described by commissioning equipment thin terminal corresponding with described debugging machine it
Between communication line on, or be deployed on virtual machine monitor, or be deployed between described debugging machine and described thin terminal
On the network of communication.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
In the embodiment of the present invention, debugging machine sends debugging application to cloud management platform;Cloud management platform receives debugging Shen
Please after, open source code volume and debugging machine between control gateway;Debugging machine passes through to control gateway to roll up acquisition application to be measured from source code
The source code of program, by the source code of application program to be measured, debugging machine is debugged to application program to be measured, and in debugging
Enable security management and control strategy, security management and control strategy is used for the source generation preventing from being downloaded application program to be measured from debugging machine by commissioning equipment
Code.Control gateway in the embodiment of the present invention, when not debugging to application program to be measured, between debugging machine and source code volume
It is to close, debugging machine does not have source code, and debugging machine also cannot obtain source code, thus without causing letting out of source code
Dew;During debugging, when needing to check source code, debugging chance sends debugging application to cloud management platform, to ask cloud
Management platform opens the route test gateway between source code volume and debugging machine, and now, debugging machine can roll up acquisition source generation from source code
Code is debugged to application program to be measured, but debugging chance enables security management and control strategy, in the restriction of security management and control strategy simultaneously
Under, source code cannot be obtained from debugging machine by commissioning equipment, this ensures that there the safety of source code.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is described, shows
So, described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the reality in the present invention
Apply example, the every other embodiment that those of ordinary skill in the art are obtained under the premise of not making creative work, all belong to
In the scope of protection of the invention.
Embodiments provide a kind of code debugging method and debugging system, the debugging system bag of the embodiment of the present invention
Include client and server, the embodiment of the present invention ensure that the safety of source code.
Refer to Fig. 1, Fig. 1 shows one embodiment of code debugging method of the present invention, the present embodiment method includes:
101st, CD writers obtain the executable file of application program to be measured, by the loading of executed file of application program to be measured
To by commissioning equipment;
In the present embodiment, the executable file of the application program to be measured after compiling can be placed on the server specified, from this
Server downloading data is required to carry out security inspection, checks that the data passed through could be transmitted, CD writers can be from this service
The executable file of application program to be measured downloaded by device;Or can by compiler server by compile generate application program to be measured can
Execution file is automatically sent on a file server, and CD writers can obtain application journey to be measured from this document transmission server
The executable file of sequence.
After CD writers obtain the executable file of application program to be measured, the loading of executed file of application program to be measured is arrived
By on commissioning equipment.In the present embodiment, can be mobile phone by commissioning equipment, the mobile terminal such as panel computer or other
Device.
102nd, debugging machine is debugged to by the application program to be measured on commissioning equipment, and enables security management and control in debugging
Strategy.
In the present embodiment, debugging machine is preserved the source code of application program to be measured, debugging machine is in cloud computing system
Virtual machine.Can be connected to by way of usb connects or com is direct-connected in the corresponding thin terminal of debugging machine by commissioning equipment.
When CD writers by the loading of executed file of application program to be measured on by commissioning equipment after, debugging machine is to being adjusted
Measurement equipment sends debug command, to debug to by the application program to be measured on commissioning equipment, and enables safety in debugging
Management and control strategy, the effect of security management and control strategy is to prevent from being downloaded application to be measured by commissioning equipment from debugging machine during debugging
The source code of program.
Security management and control strategy in the present embodiment includes at least one of: exceedes the data message of pre-set length threshold not
Can pass through, the data message that transmission frequency exceedes predeterminated frequency threshold value can not pass through, and containing the default data forbidden and instructing
Message can not pass through.
For security management and control strategy one: the executable file because of application program to be measured is downloaded to by commissioning by CD writers
Equipment, debugging machine has the source code of application program to be measured, in order to ensure the safety of source code, in debugging except debugging instruction
Outside, debugging machine should there is not again big file be transferred to by commissioning equipment it is possible to pre- according to the length of debugging instruction
Length threshold is first set, and the data message that security management and control strategy could be arranged to exceed pre-set length threshold can not transmit, so
In debugging process, although source code is transferred to by commissioning equipment, also simply small part.
For security management and control strategy two: because the source code of application program to be measured is a larger data file of ratio, by institute
Some source codes are transferred to is needed longer time by commissioning equipment, and the transmission of debug command is interval, therefore, it can root
Need the transmission frequency of message is limited according to debugging, security management and control strategy could be arranged to exceed the number of predeterminated frequency threshold value
Can not transmit according to message, the quantity of the source code that can be transferred to commissioning object so in debugging process, can be greatly reduced.
For security management and control strategy three: exchange all data messages that test-run a machine issues and parsed, if in data message
Forbid instructing (such as push) containing default, then forbid sending.
Above-mentioned security management and control strategy can be deployed in by commissioning equipment thin terminal corresponding with debugging machine between order wire
On road (as usb), or be deployed on virtual machine monitor vmm, or be deployed in debugging machine and corresponding thin terminal it
Between communication network on.
Three of the above security management and control strategy and dispositions method by way of example only, not as the final restriction to the present invention.
In the present embodiment, CD writers can be the virtual machine in physical machine or cloud computing system, and in CD writers
During for virtual machine in cloud computing system, CD writers can share a thin terminal with debugging machine.
In the present embodiment, the debugging process of program is separated with the process of loading of executed file, application program to be measured
Executable file is downloaded to by commissioning equipment by CD writers, and in whole process, debugging machine only needs to send to by commissioning equipment
Debugging instruction, and machine of debugging, to enabling security management and control strategy when being debugged by the application program to be measured on commissioning equipment, is being pacified
The debugging instruction of debugging machine transmission can be obtained under the restriction of full management and control strategy by commissioning equipment, but cannot download on debugging machine
Source code, this ensures that there the safety of source code.
Of the present invention code debugging method another embodiment is described below, the code debugging method in this enforcement includes:
201st, debugging machine sends debugging application to cloud management platform;
Debugging machine in the present embodiment is the virtual machine in cloud computing system, when debugging machine needs to by commissioning equipment
When application program to be measured is debugged, send debugging application to cloud management platform first.Can be mobile phone by commissioning equipment, flat board
The mobile terminals such as computer or other equipment or device.
202nd, cloud management platform receives debugging application, opens the control gateway between source code volume and debugging machine;
After cloud management platform receives the debugging application of debugging machine transmission, open the control net between debugging machine and source code volume
Close, so that debugging machine can roll up, by controlling gateway, the source code obtaining application program to be measured from source code.
203rd, the source code obtaining application program to be measured rolled up by debugging machine from source code, is adjusted by the source code of application program to be measured
Test-run a machine is debugged to application program to be measured, and enables security management and control strategy in debugging.
After controlling gateway to open, debugging machine can roll up, from source code, the source code obtaining application program to be measured, by be measured
The source code of application program is debugged to application program to be measured, and enables security management and control strategy in debugging.Enable bursting tube
The purpose of control strategy is the source code preventing from being downloaded from debugging machine by commissioning equipment application program to be measured during debugging.
Control net in the present embodiment, when not debugging to application program to be measured, between debugging machine and source code volume
Close, debugging machine does not have source code in itself, and debugging machine cannot obtain source code, just cannot be leaked to be adjusted by source code yet
Measurement equipment;When needing application program to be measured is debugged, the control between source code volume and debugging machine opened by cloud management platform
Gateway the local volume isolation by debugging machine, debugging machine can obtain source code, but source code cannot be stored local volume,
And in debugging, security management and control strategy opened by debugging machine, in the presence of security management and control strategy, can be obtained tune by commissioning equipment
The debugging instruction that test-run a machine sends, but source code cannot be obtained from debugging machine, this ensures that there the safety of source code.
For ease of understanding, with a specific embodiment, the code debugging method in above example is described below, please
Refering to Fig. 3, another embodiment of code debugging method of the present invention includes:
301st, debugging machine, by the loading of executed file of application program to be measured to by commissioning equipment, is sent out to cloud management platform
Send debugging application;
In the present embodiment, the executable file of compiled application program to be measured can be placed on the server specified, and debugs machine
The server specified can be arrived and obtain the executable file of application program to be measured and by loading of executed file to by commissioning equipment
On, after the completion of download, debugging machine sends debugging application to cloud management platform.Debugging machine in the present embodiment is in cloud computing system
Virtual machine.
302nd, cloud management platform receive debugging application, close debugging machine local volume, and open source code volume with debugging machine it
Between control gateway;
After cloud management platform receives debugging application, it is first shut off the local volume of debugging machine, to prevent debugging machine permissible
During the source code obtaining application program to be measured, the source code of acquired application program to be measured is downloaded to described local volume.Close
The method of the local volume of debugging machine, for example: the local volume unloading of debugging machine, setting fire wall are forbidden accessing the local of debugging machine
Volume etc..
After closing the local volume of debugging machine, the control gateway between source code volume and debugging machine opened by cloud management platform, so that
Debugging machine can obtain the source code of application program to be measured.
303rd, debugging machine rolls up, from source code, the source code obtaining application program to be measured, by the source code pair of application program to be measured
Application program to be measured is debugged, and enables security management and control strategy in debugging;
After controlling gateway to open, debugging machine can roll up, from source code, the source code obtaining application program to be measured, by be measured
The source code debugging machine of application program is debugged to application program to be measured, and enables security management and control strategy in debugging.Enable
The purpose of security management and control strategy is the source preventing from being downloaded from debugging machine by commissioning equipment application program to be measured during debugging
Code.
The security management and control strategy of the present embodiment can include at least one of: exceedes the data message of pre-set length threshold
Can not pass through, the data message that transmission frequency exceedes predeterminated frequency threshold value can not pass through, and containing the default number forbidden and instructing
Can not pass through according to message.
Above-mentioned security management and control strategy can be deployed in by commissioning equipment thin terminal corresponding with debugging machine between order wire
Lu Shang, or be deployed on virtual machine monitor vmm, or be deployed on the network communicate between debugging machine and thin terminal.
304th, after debugging terminates, the control gateway between source code volume and debugging machine closed by cloud management platform, removes debugging
The caching of machine, recovers the local volume of debugging machine;
After debugging terminates, debugging machine can send prompting message to cloud management platform and be tied with informing cloud management platform testing
Bundle, or cloud management platform can preset debugging cycle, after a debugging cycle terminates or receive debugging and terminate prompting
During message, the control gateway between source code volume and debugging machine closed by cloud management platform, concurrently disinfects the caching of debugging machine, removes slow
The purpose deposited is to prevent after the local roll recovery of debugging machine, and the source code that debugging machine stores in caching is stored in local volume,
Cause the leakage of source code, after the caching removing debugging machine, cloud management platform recovers the local volume of debugging machine.
305th, debugging machine stops enabling security management and control strategy.
Because of no source code on debugging machine, and machine of debugging also cannot be rolled up from source code and obtain source code, so now will not make
Become the leakage of source code, debugging machine stops enabling security management and control strategy, debugging machine returns to can appoint to being loaded by commissioning equipment
The state of what information.
Control net in the present embodiment, when not debugging to application program to be measured, between debugging machine and source code volume
Close, debugging machine does not have source code in itself, and cannot obtain source code yet, just cannot be leaked to be set by commissioning by source code yet
Standby;When needing application program to be measured is debugged, the control gateway between source code volume and debugging machine opened by cloud management platform
And the local volume isolation by debugging machine, debugging machine can obtain source code, but source code cannot be stored local volume, and
During debugging, security management and control strategy opened by debugging machine, in the presence of security management and control strategy, can be obtained debugging machine by commissioning equipment
The debugging instruction sending, but source code cannot be obtained from debugging machine;After debugging terminates, cloud management platform can remove debugging
The caching of machine, so after debugging terminates, the caching of debugging machine and the locally equal no source code of volume, and debugging machine also cannot obtain source
Code, has fully ensured that the safety of source code.
Below debugging system provided in an embodiment of the present invention is described, 400 1 embodiments of debugging system of the present invention
Including: CD writers 410 and debugging machine 420.
Wherein CD writers 410 include:
Acquiring unit 4101, for obtaining the executable file of application program to be measured;
Download unit 4102, for by the loading of executed file of application program to be measured to by commissioning equipment;
Debugging machine 420 includes:
Debugging unit 4201, for debugging to by the application program to be measured on commissioning equipment;
Security management and control unit 4202, for enabling bursting tube when debugging unit 4201 is debugged to application program to be measured
Control strategy, security management and control strategy is used for the source code preventing from being downloaded application program to be measured from debugging machine by commissioning equipment.
For ease of understanding, below with a practical application scene to each unit in CD writers in the present embodiment 410 and tune
The interactive mode between each unit in test-run a machine 420 is described:
In the present embodiment, the executable file of compiled application program to be measured can be placed on given server, from this clothes
Business device downloading data needs to carry out security inspection, checks that the data passed through could be transmitted, acquiring unit 4101 can be from this clothes
The executable file of application program to be measured downloaded by business device;Or the application program to be measured generating can will be compiled by compiler server
Executable file is automatically sent on a file server, and acquiring unit 4101 can obtain from this document transmission server and treat
Survey the executable file of application program.
After acquiring unit 4101 obtains the executable file of application program to be measured, download unit 4102 is by application journey to be measured
The loading of executed file of sequence is to by commissioning equipment (not shown).In the present embodiment, can be mobile phone by commissioning equipment,
The mobile terminals such as panel computer or other equipment or device.
In the present embodiment, debugging machine 420 is preserved the source code of application program to be measured, debugging machine 420 is cloud computing system
Virtual machine in system.Debugging machine 420 can be connected to by way of usb connects or com is direct-connected by commissioning equipment corresponding thin
In terminal.
CD writers 410 download unit 4102 by the loading of executed file of application program to be measured to by commissioning equipment
Afterwards, the debugging unit 4201 of debugging machine 420 is debugged to by the application program to be measured on commissioning equipment, security management and control unit
4202 enable security management and control strategy to application program to be measured when debugging unit 4201 is debugged.The effect of security management and control strategy
It is the source code preventing from being downloaded from debugging machine 420 by commissioning equipment application program to be measured during debugging.
Security management and control strategy in the present embodiment includes at least one of: exceedes the data message of pre-set length threshold not
Can pass through, the data message that transmission frequency exceedes predeterminated frequency threshold value can not pass through, and containing the default data forbidden and instructing
Message can not pass through.
Above-mentioned security management and control strategy can be deployed in by commissioning equipment thin terminal corresponding with debugging machine 420 between communication
On circuit (as usb), or it is deployed on virtual machine monitor vmm, or be deployed in debugging machine 420 and corresponding thin terminal
Between communication network on.
Three of the above security management and control strategy and dispositions method by way of example only, not as the final restriction to the present invention.
In the present embodiment, CD writers 410 can be the virtual machine in physical machine or cloud computing system, and is burning
When record machine 410 is the virtual machine in cloud computing system, CD writers 410 can share a thin terminal with debugging machine 420.
In the present embodiment, the debugging process of program is separated with the process of loading of executed file, application program to be measured
Executable file is downloaded to by commissioning equipment by CD writers, and in whole process, debugging machine only needs to send to by commissioning equipment
Debugging instruction, and machine of debugging, to enabling security management and control strategy when being debugged by the application program to be measured on commissioning equipment, is being pacified
The debugging instruction of debugging machine transmission can be obtained under the restriction of full management and control strategy by commissioning equipment, but cannot download on debugging machine
Source code, this ensures that there the safety of source code.
Of the present invention debugging system another embodiment is described below, the debugging system 500 of this enforcement includes: debugging machine 510 and
Cloud management platform 520.
Wherein, debugging machine 510 includes:
Debugging application unit 5101, for sending debugging application to cloud management platform 520;
Source code acquiring unit 5102, for rolling up the source code obtaining application program to be measured from source code;
Debugging unit 5103, the source code of the application program to be measured for being obtained according to source code acquiring unit 5102, treat
Survey application program to be debugged;
Security management and control unit 5104, for enabling security management and control plan when debugging unit 5103 is debugged to application program to be measured
Slightly, security management and control strategy is used for the source code preventing from being downloaded application program to be measured from debugging machine by commissioning equipment;
Cloud management platform 520 includes:
Receiving unit 5201, for receiving the debugging application that debugging application unit 5101 sends;
Processing unit 5202, for after receiving unit 5201 receives debugging application, opening source code volume and debugging machine 510
Between control gateway;
Debugging machine 510 in the present embodiment is the virtual machine in cloud computing system, when debugging machine needs to by commissioning equipment
On application program to be measured when being debugged, debugging application unit 5101 sends debugging application to cloud management platform 520 first.Quilt
Commissioning equipment can be mobile phone, the mobile terminal such as panel computer or other equipment or device.
The processing unit 5202 of cloud management platform 520 receiving unit 5201 receive debugging application after, open source code volume with
Control gateway between debugging machine 510, so that debugging machine 510 can obtain the source code of application program to be measured.
The source code acquiring unit 5102 of debugging machine 510 rolls up the source code obtaining application program to be measured, debugging unit from source code
5103 are debugged to application program to be measured by the source code of application program to be measured, and security management and control unit 5104 is in debugging unit
Security management and control strategy is enabled during 5103 pairs of application program debugging to be measured.The purpose enabling security management and control strategy prevents in debugging
During by commissioning equipment from debugging machine download application program to be measured source code.
Control net in the present embodiment, when not debugging to application program to be measured, between debugging machine and source code volume
Close, debugging machine does not have source code in itself, and debugging machine cannot obtain source code, just cannot be leaked to be adjusted by source code yet
Measurement equipment;When needing application program to be measured is debugged, the control between source code volume and debugging machine opened by cloud management platform
Gateway the local volume isolation by debugging machine, debugging machine can obtain source code, but source code cannot be stored local volume,
And in debugging, security management and control strategy opened by debugging machine, in the presence of security management and control strategy, can be obtained tune by commissioning equipment
The debugging instruction that test-run a machine sends, but source code cannot be obtained from debugging machine, this ensures that there the safety of source code.
For ease of understanding, with a specific embodiment, above-mentioned debugging system 500 is described below, refers to Fig. 6, this reality
The debugging system 600 applied in example includes: debugging machine 610 and cloud management platform 620.
Wherein, debugging machine 610 includes:
Download unit 6101, for by the loading of executed file of application program to be measured to by commissioning equipment;
Debugging application unit 6102, for sending debugging application to cloud management platform 620;
Source code acquiring unit 6103, for rolling up the source code obtaining application program to be measured from source code;
Debugging unit 6104, the source code of the application program to be measured for being obtained according to source code acquiring unit 6103, treat
Survey application program to be debugged;
Security management and control unit 6105, for enabling security management and control plan when debugging unit 6104 is debugged to application program to be measured
Slightly, security management and control strategy is used for preventing from being downloaded the source code of application program to be measured from debugging machine 610 by commissioning equipment;
Cloud management platform 620 includes:
Receiving unit 6201, for receiving the debugging application that debugging application unit 6102 sends;
Processing unit 6202, for, after receiving unit 6201 receives debugging application, closing the local of debugging machine 610
Volume, opens the control gateway between source code volume and debugging machine 610.
For ease of understanding, below with a practical application scene to each unit in debugging machine 610 in the present embodiment and cloud
The interactive mode between each unit in management platform 620 is described:
In the present embodiment, the executable file of compiled application program to be measured can be placed on the server specified, and debugs machine
610 download unit 6101 can arrive the server specified and obtain the executable file of application program to be measured and by executable file
Download to by commissioning equipment, after the completion of download, debugging application unit 6102 sends debugging application to cloud management platform 620.This
Debugging machine 610 in embodiment is the virtual machine in cloud computing system.
The processing unit 6202 of cloud management platform 620, after receiving unit 6201 receives debugging application, is first shut off adjusting
The local volume of test-run a machine 610, to prevent debugging machine 610 when obtaining the source code of application program to be measured by acquired source generation
Code downloads to described local volume, is then turned on the control gateway between source code volume and debugging machine 610, so that debugging machine 610 is permissible
Obtain the source code of application program to be measured.
After controlling gateway to open, the source code acquiring unit 6103 of debugging machine 610 is rolled up from source code and is obtained application program to be measured
Source code, debugging unit 6104 debugged to application program to be measured by the source code of application program to be measured, security management and control
Unit 6105 enables security management and control strategy when debugging unit 6104 is debugged to application program to be measured.Enable security management and control strategy
Purpose is the source code preventing from being downloaded from debugging machine 610 by commissioning equipment application program to be measured during debugging.
The security management and control strategy of the present embodiment can include at least one of: exceedes the data message of pre-set length threshold
Can not pass through, the data message that transmission frequency exceedes predeterminated frequency threshold value can not pass through, and containing the default number forbidden and instructing
Can not pass through according to message.
Above-mentioned security management and control strategy can be deployed in by commissioning equipment thin terminal corresponding with debugging machine 610 between communication
On circuit, or it is deployed on virtual machine monitor vmm, or be deployed between debugging machine 610 and corresponding thin terminal
On the network of communication.
After debugging terminates, debugging machine 610 can send prompting message to inform cloud management platform to cloud management platform 620
Debugging terminates, or cloud management platform 620 can preset debugging cycle, after a debugging cycle terminates or receive tune
When the debugging that test-run a machine 610 sends terminates prompting message, the processing unit 6202 of cloud management platform 620 closes source code volume and debugging machine
Control gateway between 610, concurrently disinfects the caching of debugging machine 610, and the purpose removing caching is the basis preventing in debugging machine 610
After ground roll recovery, the source code that debugging machine 610 stores in caching is stored in local volume, causes the leakage of source code, is removing
After the caching of debugging machine 610, processing unit 6202 recovers the local volume of debugging machine 610.
Because of no source code on debugging machine 610, and debug machine 610 and also cannot roll up from source code and obtain source code, so now
Debugging machine 610 does not result in the leakage of source code, and security management and control unit 6105 stops enabling security management and control strategy, debugs machine 610
Returning to can be to the state being loaded any information by commissioning equipment.
Control net in the present embodiment, when not debugging to application program to be measured, between debugging machine and source code volume
Close, debugging machine does not have source code in itself, and cannot obtain source code yet, just cannot be leaked to be set by commissioning by source code yet
Standby;When needing application program to be measured is debugged, the control gateway between source code volume and debugging machine opened by cloud management platform
And the local volume isolation by debugging machine, debugging machine can obtain source code, but source code cannot be stored local volume, and
During debugging, security management and control strategy opened by debugging machine, in the presence of security management and control strategy, can be obtained debugging machine by commissioning equipment
The debugging instruction sending, but source code cannot be obtained from debugging machine;After debugging terminates, cloud management platform can remove debugging
The caching of machine, so after debugging terminates, the caching of debugging machine and the locally equal no source code of volume, and debugging machine also cannot obtain source
Code, has fully ensured that the safety of source code.
Debugging system in the embodiment of the present invention is described further below, refers to Fig. 7, the debugging system in the present embodiment
700 include: CD writers 710 and debugging machine 720.
CD writers 710 include: first processor 7101 and the first memory 7102 for memory buffers code.
Wherein, first processor 7101 executes following flow process:
Obtain the executable file of application program to be measured;
By the loading of executed file of application program to be measured to by commissioning equipment.
Debugging machine 720 includes second processing device 7201 and the second memory 7202 for memory buffers code.
Wherein, second processing device 7201 executes following flow process:
Debugged and enabled security management and control strategy to by the application program to be measured on commissioning equipment, security management and control strategy is used
In prevent by commissioning equipment from debugging machine download application program to be measured source code.
Above-mentioned security management and control strategy can include at least one of: the data message exceeding pre-set length threshold can not lead to
Cross, the data message that transmission frequency exceedes predeterminated frequency threshold value can not pass through, and containing the default data message forbidden and instructing
Can not pass through.
These security management and control strategies can be deployed in by commissioning equipment thin terminal corresponding with debugging machine between order wire
Lu Shang, or be deployed on virtual machine monitor, or be deployed on the network communicate between debugging machine and thin terminal.
The executable file of application program to be measured in the present embodiment, is obtained by first processor, and by application program to be measured
Loading of executed file to by commissioning equipment, then second processing device is carried out to by the application program to be measured on commissioning equipment
Debugging, and enable security management and control strategy in debugging, security management and control strategy is used for preventing being downloaded from debugging machine by commissioning equipment to be treated
Survey the source code of application program.In the present embodiment, the executable file of application program to be measured is downloaded to be adjusted by first processor
Measurement equipment, in whole debugging process, second processing device only needs to send debugging instruction to by commissioning equipment, and second processing device exists
Security management and control strategy can be enabled to when being debugged by the application program to be measured on commissioning equipment, quilt under the restriction of security management and control strategy
Commissioning equipment can obtain the debugging instruction of debugging machine transmission, but cannot download the source code on debugging machine, so ensures that
The safety of source code.
Debugging system in the embodiment of the present invention is described further below, refers to Fig. 8, the debugging system in the present embodiment
800 include: cloud management platform 810 and debugging machine 820.
Cloud management platform 810 includes receptor 8101 and the 3rd processor 8102, wherein:
Receptor 8101 is used for receiving the debugging application of debugging machine 820 transmission;
3rd processor 8102 is used for, after receptor 8101 receives debugging application, opening source code volume and debugging machine 820
Between control gateway.
Debugging machine includes transmitter 8201 and fourth processor 8202, wherein:
Transmitter 8201 is used for sending debugging application to cloud management platform 810;
Fourth processor 8202 is used for rolling up, from source code, the source code obtaining application program to be measured, is answered to be measured according to source code
Debugged with program, and enabled security management and control strategy in debugging, security management and control strategy is used for preventing by commissioning equipment from tune
The source code of application program to be measured downloaded by test-run a machine 820.
Wherein, fourth processor 8202 is additionally operable to, and sends debugging application in transmitter 8201 to cloud management platform 810
Before, by the loading of executed file of application program to be measured to by commissioning equipment.
3rd processor 8102, before opening the control gateway between source code volume and debugging machine 820, is additionally operable to, and closes and adjusts
The local volume of test-run a machine, to prevent after controlling gateway to open, the source code of the application program to be measured obtaining is downloaded by debugging machine 820
Roll up to local.
After debugging terminates, the 3rd processor 8102 cuts out the control gateway between source code volume and described debugging machine 820, clearly
Except the caching of debugging machine 820, recover the local volume of debugging machine 820, fourth processor 8202 is additionally operable to stopping and enables security management and control
Strategy.
Wherein, above-mentioned security management and control strategy can include at least one of: exceedes the data message of pre-set length threshold
Can not pass through, the data message that transmission frequency exceedes predeterminated frequency threshold value can not pass through, and containing the default number forbidden and instructing
Can not pass through according to message.
Above-mentioned security management and control policy deployment is by the communication line between commissioning equipment and the debugging corresponding thin terminal of machine 820
On, or be deployed on virtual machine monitor, or be deployed on the network communicate between debugging machine 820 and thin terminal.
Control net in the present embodiment, when not debugging to application program to be measured, between debugging machine and source code volume
Close close, debugging machine does not have source code in itself, and cannot obtain source code yet, therefore, also just cannot by source code be leaked to by
Commissioning equipment;When needing application program to be measured is debugged, the 3rd processor, by the local volume isolation of the machine of debugging, opens source
Control gateway between code volume and debugging machine, fourth processor can obtain source code, but source code cannot be stored this
Ground volume, and in debugging, fourth processor can open security management and control strategy, in the presence of security management and control strategy, by commissioning equipment
The debugging instruction of debugging machine transmission can be obtained, but source code cannot be obtained from debugging machine;At the 3rd after debugging terminates
Reason device can remove the caching of debugging machine, so after debugging terminates, the caching of debugging machine and the locally equal no source code of volume, and debug
Machine also cannot obtain source code, has fully ensured that the safety of source code.
In addition it should be noted that, device embodiment described above is only schematically, wherein said as separating
The unit of part description can be or may not be physically separate, as the part that unit shows can be or
Can not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
The needing of border selects the purpose to realize this embodiment scheme for some or all of unit therein.In addition, what the present invention provided
In device embodiment accompanying drawing, the annexation between unit represents there is communication connection between them, specifically can be implemented as one
Bar or a plurality of communication bus or holding wire.Those of ordinary skill in the art are not in the case of paying creative work, you can with
Understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can borrow
Software is helped to add the mode of necessary common hardware to realize naturally it is also possible to include special IC, specially by specialized hardware
To be realized with cpu, private memory, special components and parts etc..Generally, all functions of being completed by computer program can
Easily realized with corresponding hardware, and, the particular hardware structure for realizing same function can also be multiple many
Sample, such as analog circuit, digital circuit or special circuit etc..But, more for the purpose of the present invention in the case of software program real
It is now more preferably embodiment.Based on such understanding, technical scheme is substantially made to prior art in other words
That contributes partly can be embodied in the form of software product, and this computer software product is stored in the storage medium that can read
In, as the floppy disk of computer, u disk, portable hard drive, read only memory (rom, read-only memory), random access memory
Device (ram, random access memory), magnetic disc or CD etc., including some instructions with so that a computer sets
Standby (can be personal computer, server, or network equipment etc.) executes the method described in each embodiment of the present invention.
A kind of code the adjustment method above embodiment of the present invention being provided and debugging system are described in detail, for
One of ordinary skill in the art, according to the thought of the embodiment of the present invention, all has in specific embodiments and applications
In place of change, therefore, this specification content should not be construed as limitation of the present invention.