CN104424100A - On-line flash debugging method and system - Google Patents
On-line flash debugging method and system Download PDFInfo
- Publication number
- CN104424100A CN104424100A CN201310395327.9A CN201310395327A CN104424100A CN 104424100 A CN104424100 A CN 104424100A CN 201310395327 A CN201310395327 A CN 201310395327A CN 104424100 A CN104424100 A CN 104424100A
- Authority
- CN
- China
- Prior art keywords
- browser
- flash
- line
- flash program
- instrument
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses an on-line flash debugging method and system. The method includes acquiring communication data between a browser and a web server when the browser runs a flash program; locating a first error position of the flash program according to the communication data; replacing a locale of the flash program serving as a debugging version, with an on-line environment; allowing running in the browser; performing error locating and breakpoint debugging through a complier to obtain a second error position; and correcting the application at the first error position and the second error position. The on-line flash debugging method and system according to the technical scheme has the advantages that debugging flash programs released and on-line is made possible, errors can be accurately located, and perfecting is facilitated for flash developers.
Description
Technical field
The present invention relates to field of computer technology, particularly relate to adjustment method and the system of flash on a kind of line.
Background technology
Along with popularizing of flash technology, increasing use flash technology in game or application and development.Due to the swf(shock wave flash of flash technology compiling, be called for short swf) file of form, just can run when by the time must load triggering.Therefore under many circumstances, only after flash issue is reached the standard grade, running environment just can expose some problems on line.But specification effectively can not debug the technical scheme of flash on line at present.
Summary of the invention
Based on this, be necessary the adjustment method and the system that provide flash on a kind of line, can debug issuing the flash reached the standard grade, orientation problem exactly, facilitates flash developer to carry out perfect.
An adjustment method of flash on line, comprising:
Communication data during crawl browser execution flash program between described browser and web server, and according to the first Error Location in the flash program of described communication data location;
This locality is substituted into environment on line as the flash program of debug version, runs in a browser, obtain the second Error Location by compiler carry out reporting an error location and debugging breakpoints, and revise the program of described first Error Location and described second Error Location.
A debug system of flash on line, comprising:
Data capture module, communication data during for capturing browser execution flash program between described browser and web server, and according to the first Error Location in the flash program of described communication data location;
Debugging module, for this locality is substituted into environment on line as the flash program of debug version, run in a browser, obtain the second Error Location by compiler carry out reporting an error location and debugging breakpoints, and revise the program of described first Error Location and described second Error Location.
The adjustment method of flash and system on above-mentioned line, by the communication data between browser during crawl browser execution flash program and web server, and according to the Error Location in data transmission relevant portion in the flash program of communication data location, and this locality is substituted into environment on line as the flash program of debug version, by compiler to flash program report an error location and debugging breakpoints, flash program after debugging can issue flash program on existing line of replacing again, therefore technical solution of the present invention can be debugged issuing the flash reached the standard grade, orientation problem exactly, flash developer is facilitated to carry out perfect.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of flash adjustment method on the line in an embodiment;
Fig. 2 is the schematic flow sheet of flash adjustment method on the line in another embodiment;
Fig. 3 is the structural representation of flash debug system on the line in an embodiment;
Fig. 4 is the structural representation of flash debug system on the line in another embodiment;
Fig. 5 is the structural representation of the performance monitoring module in an embodiment.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
See Fig. 1, in one embodiment, provide flash adjustment method on a kind of line, the flow process of the method comprises:
Step 102, communication data during crawl browser execution flash program between browser and web server, and according to the first Error Location in the flash program of communication data location.
In the present embodiment, can by the two-way communication data between data packet catcher crawl browser end and web server, and the communication data captured is resolved, the value of wherein specific fields is judged, if value is not within the scope preset, then can the first relevant Error Location of program for estimating.
In one embodiment, the communication data between browser and web server is captured by Charles instrument.In other embodiments, capturing the communication data between browser and web server, can also be carry out packet capturing by SoapSDK Webservice packet catcher or fiddler instrument.
Charles instrument is http(http, a hypertext transfer protocol, HTML (Hypertext Markup Language)) proxy server, http monitor and reversion proxy server.When using Charles instrument, operate according to following concrete steps: (1) opens Charles, arranges the monitoring IP(IP of Charles instrument, InternetProtocol, procotol) address and listening port, monitor IP address and be set to local ip address: 127.0.0.1; Listening port is set to, not such as, by arbitrary port that local process takies, port 8011, arrange this port for the port as browser and web server two-way communication.(2) proxy server is set in a browser, proxy IP address and port are set to identical with listening port with the monitoring IP address of Charles instrument, namely proxy IP address is set to local ip address, proxy server port is set to the port identical with Charles instrument listening port, as 8011.
After above-mentioned being provided with, Charles instrument can capture the communication data that web server transmits, then is submitted to browser, or captures the communication data of browser transmission, then is submitted to web server.Charles instrument can be resolved the data captured, such as when the data of browser and web server interactive communication based on AMF agreement, the binary data based on AMF agreement captured can be resolved to the form of object (Object) by Charles instrument, again such as when the data of browser and web server interactive communication are JSON(JSON, Java Script Object Notation, the data interchange format of lightweight) form, Charles instrument can capture the data of JSON form and check data content wherein.Charles instrument is utilized to resolve the data captured, application developer checks data content wherein, thus infer the position that program is made mistakes, such as, to the data based on AMF agreement, it is resolved, obtain the field containing " result ", application developer according to the value of result field, can infer the operation result of flash program, if the value of result field exceeds default scope, namely represent that mistake appears in relative program.After application developer orients Error Location, in follow-up debugging, fault-tolerant or compatible processing can be carried out.
Step 104, is substituted into environment on line using this locality as the flash program of debug version, runs in a browser, obtains the second Error Location by compiler carry out reporting an error location and debugging breakpoints, and the program of correction the first Error Location and the second Error Location.
After the issue of flash program is reached the standard grade, even if run and occur mistake, application developer can not debug, orient Error Location, therefore need the flash program of the debug version be connected with compiler this locality, to be substituted on line environment and to run, running environment on the line that both can ensure flash program, also can carry out the location that reports an error, debugging breakpoints is set.The initial content of the flash program of debug version is identical with the content issuing the flash program of reaching the standard grade.
In one embodiment, can use fiddler instrument that this locality is substituted into environment on line as the flash program of debug version.Fiddler instrument is a http debugging proxy, arranges breakpoint, can record and check http communication that is local and internet, checking " turnover " data that fiddler is all.When using fiddler instrument, operate according to following concrete steps: (1) arranges monitoring IP address and the listening port of fiddler instrument, when fiddler instrument is combined with Charles instrument, monitoring IP address, port are set to identical port, monitor IP address and be set to local ip address, listening port is set to not by arbitrary port that other process local takies; (2) proxy server is set in a browser, proxy IP address and port is set to identical with listening port with the monitoring IP address of fiddler instrument; (3) empty browser rs cache, browser is loaded into flash program on line again, uses the address of flash program in the line taking of fiddler Tool grasper; (4) use the local flash program as debug version of compiler compiling, and keep running status; (5) fiddler instrument is used flash program on the line of crawl to be replaced with the local address as the flash program of debug version.
Through aforesaid operations, browser can on line in environment, the local flash program as debug version stored is run by fiddler instrument, use fiddler instrument to carry out reporting an error the second Error Location (bug namely in program) that location, debugging breakpoints obtain in debug version flash program, for the first Error Location and the second Error Location, developer can revise, then confirms to report an error without any in the mode of debugging breakpoints, namely completes debugging.The flash program of having debugged, can be published on line again as version on new line, and its processing procedure can be, but not limited to, with reference to traditional release processing, repeat no more here.
Flash adjustment method on above-mentioned line, by the communication data between browser during crawl browser execution flash program and web server, and according to the Error Location in data transmission relevant portion in the flash program of communication data location, and this locality is substituted into environment on line as the flash program of debug version, by compiler to flash program report an error location and debugging breakpoints, flash program after debugging can issue flash program on existing line of replacing again, can debug issuing the flash reached the standard grade, orientation problem exactly, flash developer is facilitated to carry out perfect.
See Fig. 2, in one embodiment, the adjustment method of flash on a kind of line is provided.Its flow process comprises:
Step 202, communication data during crawl browser execution flash program between browser and web server, and according to the first Error Location in the flash program of communication data location.
Step 206, is substituted into environment on line using this locality as the flash program of debug version, runs in a browser, obtains the second Error Location by compiler carry out reporting an error location and debugging breakpoints, and the program of correction the first Error Location and the second Error Location.
Above-mentioned steps 202 and step 206 can perform with reference to step 102 and step 104 respectively, repeat no more here.
In the present embodiment, before step 206 carries out debugging breakpoints by fiddler, can also comprise and perform step 204, performance monitoring is carried out to flash program on the line of browser load operating.
In one embodiment, SwfProfiler instrument is used to monitor Object Creation and destruction situation in the EMS memory occupation amount of flash program when running, process field.In use, open SwfProfiler, and its state is opened to running status, use SwfProfiler to catch the data of browser execution flash program.After acquisition success, can observe EMS memory occupation discharge curve in SwfProfiler interface.
At use SwfProfiler, internal memory occupancy is monitored, such as application developer can judge whether EMS memory occupation exceeds standard based on experience value, if chess and card games flash program internal memory occupancy is below 300M, RPG(RPG, Role Played Games, RPG (Role-playing game)) its EMS memory occupation amount of web game of class is 500 ~ 800M.When internal memory exceeds standard, in follow-up debugging, can process according to particular problem, such as, the animation control unit in flash program be divided and modify, or compressed picture, animation resource volume.
When using SwfProfiler to monitor Object Creation in process field and destruction situation, can judge according to the smoothness of EMS memory occupation discharge curve.Curve is more level and smooth, and in read-me territory, Object Creation and the situation of destruction are relatively more reasonable, and program is in healthier state.If curvilinear slope is steeper, sawtooth is intensive, read-me creates object in territory frequently, along with program runtime is more of a specified duration, the useless object produced can take the expense of resource, and these objects can be referred to as " rubbish ", and curve is steeper, sawtooth is intensive, and just to illustrate that " rubbish " reclaim mechanism starts more frequent, application developer just can program for estimating to write be not a healthy state.In follow-up debugging process, application developer can the usage log mode of following the trail of, and to find in program the frequent place creating object, modifies, such as, remove correlative code to program.
Flash adjustment method on above-mentioned line, can not only debug issuing the flash reached the standard grade, orientation problem exactly, can also facilitate developer to the further monitoring performance of flash program, thus optimizes its flash program developed.
See Fig. 3, in one embodiment, provide the debug system of flash on a kind of line, comprising:
Data capture module 302, communication data during for capturing browser execution flash program between browser and web server, and according to the first Error Location in the flash program of communication data location.
Debugging module 306, for this locality is substituted into environment on line as the flash program of debug version, run in a browser, obtain the second Error Location by compiler carry out reporting an error location and debugging breakpoints, and the program of correction the first Error Location and the second Error Location.
In the present embodiment, data capture module 302 may be used for by the communication data between Charles instrument crawl browser and web server.Debugging module 306 may be used for by using fiddler instrument that this locality is substituted into environment on line as the flash program of debug version.
See Fig. 4, in another embodiment, the debug system of flash on a kind of line, comprising:
Data capture module 402, communication data during for capturing browser execution flash program between browser and web server, and according to the first Error Location in the flash program of communication data location.
Performance monitoring module 404, on the line to browser load operating, flash program carries out performance monitoring.
Debugging module 406, for this locality is substituted into environment on line as the flash program of debug version, run in a browser, obtain the second Error Location by compiler carry out reporting an error location and debugging breakpoints, and the program of correction the first Error Location and the second Error Location.
In the present embodiment, data capture module 402 can be, but not limited to by the communication data between Charles instrument crawl browser and web server.
Debugging module 406 may be used for by using fiddler instrument that this locality is substituted into environment on line as the flash program of debug version.
In the present embodiment, see Fig. 5, performance monitoring module 404 comprises internal memory monitoring unit 4042 and object monitor unit 4044.In the present embodiment, performance monitoring module 304 can be, but not limited to realize its function by SwfProfiler instrument, wherein:
Internal memory monitoring unit 4042, for monitoring the EMS memory occupation amount of the flash program run.
Object monitor unit 4044, for monitoring Object Creation in process field and destruction situation.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.
Claims (10)
1. an adjustment method of flash on line, described method comprises:
Communication data during crawl browser execution flash program between described browser and web server, and according to the first Error Location in the flash program of described communication data location;
This locality is substituted into environment on line as the flash program of debug version, runs in a browser, obtain the second Error Location by compiler carry out reporting an error location and debugging breakpoints, and revise the program of described first Error Location and described second Error Location.
2. method according to claim 1, it is characterized in that, communication data during described crawl browser execution flash program between described browser and web server, comprises and captures communication data between described browser and described web server by Charles instrument;
Described captured the step of the communication data between described browser and described web server by Charles instrument before, also comprise:
Arrange monitoring IP address and the listening port of Charles instrument, described monitoring IP address is set to local ip address, and described listening port is set to not by arbitrary port that local process takies;
Proxy server is set in a browser, proxy IP address and port is set to identical with listening port with the monitoring IP address of Charles instrument.
3. method according to claim 1, is characterized in that, described this locality is substituted into environment on line as the flash program of debug version, comprises and uses fiddler instrument that this locality is substituted into environment on line as the flash program of debug version;
This locality is substituted into the step of environment on line by described use fiddler instrument as the flash program of debug version, comprising:
Arrange monitoring IP address and the listening port of fiddler instrument, described monitoring IP address is set to local ip address, and described listening port is set to not by arbitrary port that local process takies;
Proxy server is set in a browser, proxy IP address and port is set to identical with listening port with the monitoring IP address of fiddler instrument;
Empty browser rs cache, browser is loaded into flash program on line again, uses the address of flash program in the line taking of fiddler Tool grasper;
Use the local flash program as debug version of compiler compiling, and keep running status;
Fiddler instrument is used flash program on the line of crawl to be replaced with the local address as the flash program of debug version.
4. method according to claim 1, is characterized in that, described method also comprises:
Performance monitoring is carried out to flash program on the line of browser load operating.
5. method according to claim 4, is characterized in that, describedly carries out performance monitoring to flash program on the line of browser load operating, comprising:
SwfProfiler instrument is used to monitor Object Creation and destruction situation in the EMS memory occupation amount of flash program when running, process field.
6. a debug system of flash on line, it is characterized in that, described system comprises:
Data capture module, communication data during for capturing browser execution flash program between described browser and web server, and according to the first Error Location in the flash program of described communication data location;
Debugging module, for this locality is substituted into environment on line as the flash program of debug version, run in a browser, obtain the second Error Location by compiler carry out reporting an error location and debugging breakpoints, and revise the program of described first Error Location and described second Error Location.
7. system according to claim 6, is characterized in that, described data capture module is for capturing the communication data between described browser and described web server by Charles instrument.
8. system according to claim 6, is characterized in that, described debugging module is for by using fiddler instrument that this locality is substituted into environment on line as the flash program of debug version.
9. system according to claim 6, is characterized in that, described system also comprises performance monitoring module, and on the line to browser load operating, flash program carries out performance monitoring.
10. system according to claim 9, is characterized in that, described performance monitoring module comprises internal memory monitoring unit, for monitoring the EMS memory occupation amount of the flash program run;
Object monitor unit, for monitoring Object Creation in process field and destruction situation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310395327.9A CN104424100B (en) | 2013-09-03 | 2013-09-03 | Flash adjustment method and system on line |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310395327.9A CN104424100B (en) | 2013-09-03 | 2013-09-03 | Flash adjustment method and system on line |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104424100A true CN104424100A (en) | 2015-03-18 |
CN104424100B CN104424100B (en) | 2017-08-08 |
Family
ID=52973144
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310395327.9A Active CN104424100B (en) | 2013-09-03 | 2013-09-03 | Flash adjustment method and system on line |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104424100B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104699619A (en) * | 2015-03-31 | 2015-06-10 | 北京奇虎科技有限公司 | Online testing method and device |
CN106202161A (en) * | 2016-06-24 | 2016-12-07 | 财付通支付科技有限公司 | File agent method and apparatus |
CN112396681A (en) * | 2019-08-13 | 2021-02-23 | 上海哔哩哔哩科技有限公司 | Animation generation method and device and storage medium |
CN114968751A (en) * | 2021-02-24 | 2022-08-30 | 中国联合网络通信集团有限公司 | Program debugging method and program debugging device of code-free development platform |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060179418A1 (en) * | 2005-02-08 | 2006-08-10 | Pasadero, Inc. | Research protocol toolkit |
CN102236709A (en) * | 2011-07-01 | 2011-11-09 | 深圳中兴力维技术有限公司 | Flex-based monitoring page display method and system |
CN102662838A (en) * | 2012-03-29 | 2012-09-12 | 奇智软件(北京)有限公司 | Method and system for debugging Flash in browser |
-
2013
- 2013-09-03 CN CN201310395327.9A patent/CN104424100B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060179418A1 (en) * | 2005-02-08 | 2006-08-10 | Pasadero, Inc. | Research protocol toolkit |
CN102236709A (en) * | 2011-07-01 | 2011-11-09 | 深圳中兴力维技术有限公司 | Flex-based monitoring page display method and system |
CN102662838A (en) * | 2012-03-29 | 2012-09-12 | 奇智软件(北京)有限公司 | Method and system for debugging Flash in browser |
Non-Patent Citations (2)
Title |
---|
咸吃萝卜: "推荐Charles(web debugging proxy)http调试工具", 《ZENDSTUDIO》 * |
回忆未来-向东: "用Fiddler来调试web应用,用它做Flash的Post上传调试", 《JUSTWINIT》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104699619A (en) * | 2015-03-31 | 2015-06-10 | 北京奇虎科技有限公司 | Online testing method and device |
CN104699619B (en) * | 2015-03-31 | 2018-07-24 | 北京奇虎科技有限公司 | The method and apparatus tested on line |
CN106202161A (en) * | 2016-06-24 | 2016-12-07 | 财付通支付科技有限公司 | File agent method and apparatus |
CN112396681A (en) * | 2019-08-13 | 2021-02-23 | 上海哔哩哔哩科技有限公司 | Animation generation method and device and storage medium |
CN114968751A (en) * | 2021-02-24 | 2022-08-30 | 中国联合网络通信集团有限公司 | Program debugging method and program debugging device of code-free development platform |
Also Published As
Publication number | Publication date |
---|---|
CN104424100B (en) | 2017-08-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10795673B2 (en) | Diagnosing production applications | |
KR102119585B1 (en) | Debugging method, multi-core processor, and debugging device | |
EP3660684B1 (en) | Efficient and comprehensive source code fuzzing | |
US8423961B2 (en) | Simulating operations through out-of-process execution | |
Khan et al. | Dustminer: troubleshooting interactive complexity bugs in sensor networks | |
Yang et al. | Clairvoyant: a comprehensive source-level debugger for wireless sensor networks | |
US20120151452A1 (en) | Remote debugging of server side code without blocking or high-level privileges | |
CN112256570B (en) | Remote debugging method, device, equipment and storage medium | |
US20160328314A1 (en) | System and method for providing code coverage | |
US10545852B2 (en) | Diagnostics of state transitions | |
CN104424100A (en) | On-line flash debugging method and system | |
CN111831538A (en) | Debugging method, device and storage medium | |
US20120036501A1 (en) | Method and System for Capturing System and User Events Using Hardware Trace Devices | |
CN108319555A (en) | A kind of real-time adjustment method based on embedded real time system | |
US20180089007A1 (en) | Detecting root causes of use-after-free memory errors | |
CN111930472B (en) | Code debugging method and device, electronic equipment and storage medium | |
US20130159779A1 (en) | Framework for the remote debugging of web applications | |
WO2024012003A1 (en) | Data processing method and apparatus, and device, storage medium and program product | |
US8533683B2 (en) | Stack walking enhancements using sensorpoints | |
US9552277B2 (en) | Synchronized java debugger | |
US9069897B2 (en) | Capturing telemetry data by dynamic language engine | |
KR102075345B1 (en) | Fuzzing system, execution flow information extracting apparatus and method for fuzzing | |
CN108519924A (en) | A kind of online Fault Locating Method, system and the device of embedded measure and control device | |
KR101400396B1 (en) | Real-time embedded software deburgging method using memory address | |
Cabral et al. | A case for automatic exception handling |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C41 | Transfer of patent application or patent right or utility model | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20161114 Address after: 518000 Guangdong city of Shenzhen province Nanshan District Xili liuxiandong Zhongshan Road No. 1001 TCL Science Park R & D building D3 8 storey building A room 801 unit Applicant after: Shenzhen City, Oriental Boya Technology Co. Ltd. Address before: 518057 Guangdong city of Shenzhen province Nanshan District Zhongshan Road No. 1001 TCL Industrial Park International City building D3 9B - C E Applicant before: Burson Marsteller network game development (Shenzhen) Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |