CN109409399A - A kind of script error book of final entry method and electronic equipment based on educational system - Google Patents
A kind of script error book of final entry method and electronic equipment based on educational system Download PDFInfo
- Publication number
- CN109409399A CN109409399A CN201810969671.7A CN201810969671A CN109409399A CN 109409399 A CN109409399 A CN 109409399A CN 201810969671 A CN201810969671 A CN 201810969671A CN 109409399 A CN109409399 A CN 109409399A
- Authority
- CN
- China
- Prior art keywords
- mistake
- error
- error message
- information
- source file
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/241—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
- G06F11/327—Alarm or error message display
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
Abstract
The invention discloses a kind of script error book of final entry method and electronic equipment based on educational system, wherein the method includes the steps: A. carries out event monitoring to document, captures global error, read error information;B. classify to error message;C. source file reading is carried out to classified error message, arranges error message, carry out asynchronous upload and export data;The scheme through the invention adds global monitoring event, after capturing mistake, backstage is sent to after taxonomic revision record and is recorded, after the unified capture of mistake, after carrying out taxonomic revision, can improve the information of mistake.
Description
Technical field
The present invention relates to educational system field more particularly to a kind of script error book of final entry methods based on educational system
And electronic equipment.
Background technique
In the prior art, the error code block in script file is dished out mistake, and individually capture record will affect code quality,
Reduce that code is readable, and common error message can not obtain the source file that mistake occurs, and mistake specifically occurs
Position, therefore can not thoroughly check mistake.
Therefore, the existing technology needs to be improved and developed.
Summary of the invention
In view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of script errors based on educational system
Book of final entry method and electronic equipment, it is intended to solve the problems, such as that the mistake of script file carries out the book of final entry.
Technical scheme is as follows:
A kind of script error book of final entry method based on educational system, wherein comprising steps of
A. event monitoring is carried out to document, captures global error, read error information;
B. classify to error message;
C. source file reading is carried out to classified error message, arranges error message, carry out asynchronous upload and export number
According to.
The script error book of final entry method based on educational system, wherein include: before the step A
S. browser information is obtained, judges browser compatibility, and defines the association content of error message.
The script error book of final entry method based on educational system, wherein the error message classification includes: to be
System mistake, syntax error, type error.
The script error book of final entry method based on educational system, wherein the association content of the error message
Include: error message, mistake source file, the position of mistake, mistake call stack.
The script error book of final entry method based on educational system, wherein the step C includes:
C1. the map packet of the source file information of read error information, inquiry error whether there is, and there is no then record the mistake
False information;
C2. in the presence of the map packet of mistake, the ranks coordinate of the map packet misregistration of source file is read, obtains mistake
Accurate location;
C3. judge whether the call stack of the mistake of the accurate location terminates, when no, read again the source file letter of mistake
Breath, until the call stack of mistake terminates.
A kind of electronic equipment, wherein including processor, it is adapted for carrying out each instruction, and
Equipment is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor:
Event monitoring is carried out to document, captures global error, read error information;
Classify to error message;
Source file reading is carried out to classified error message, arranges error message, carry out asynchronous upload and exports data.
The electronic equipment, wherein the processor is also used to execute:
Browser information is obtained, judges browser compatibility, and define the association content of error message.
The electronic equipment, wherein the error message classification includes: system mistake, syntax error, type error.
The electronic equipment, wherein the association content of the error message includes: error message, mistake source file, mistake
The call stack of the position, mistake missed.
The electronic equipment, wherein the processor is also used to execute:
The map packet of the source file information of read error information, inquiry error whether there is, and there is no then record mistake letter
Breath;
In the presence of the map packet of mistake, the ranks coordinate of the map packet misregistration of source file is read, obtains the standard of mistake
True position;
Judge whether the call stack of the mistake of the accurate location terminates, when no, read again the source file information of mistake,
Until the call stack of mistake terminates.
The utility model has the advantages that the script error book of final entry method and electronics that the invention discloses a kind of based on educational system are set
It is standby, wherein the method includes the steps: A. carries out event monitoring to document, captures global error, read error information;B. right
Error message is classified;C. source file reading is carried out to classified error message, arranges error message, carry out asynchronous upload
And export data;The scheme through the invention adds global monitoring event, after capturing mistake, sends out after taxonomic revision record
It is sent to backstage and records, after the unified capture of mistake, after carrying out taxonomic revision, the information of mistake can be improved.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is the step flow chart of the script error book of final entry method of the present invention based on educational system.
Fig. 2 is the flow chart of the step S3 of the script error book of final entry method of the present invention based on educational system.
Fig. 3 is the structural schematic diagram of electronic equipment of the present invention.
Specific embodiment
The present invention provides a kind of script error book of final entry method and electronic equipment based on educational system, to make the present invention
Purpose, technical solution and effect it is clearer, clear, the present invention is described in more detail below.It should be appreciated that this place
The specific embodiment of description is only used to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, be the step flow chart of the script error book of final entry method of the present invention based on educational system,
The script error book of final entry method based on educational system that the invention discloses a kind of, wherein comprising steps of
S1. event monitoring is carried out to document, captures global error, read error information;
S2. classify to error message;
S3. source file reading is carried out to classified error message, arranges error message, carry out asynchronous upload and export number
According to.
The script error book of final entry method based on educational system that the invention discloses a kind of is used in script error,
Type of error etc. is conveniently found out, and is recorded, facilitates and is safeguarded, specifically, event monitoring is carried out to document, when getting
When mistake, error trap, and read error information are carried out to the overall situation, classified to error message, different mistakes is corresponding
Wrong source file it is also different, according to classified error message carry out source file reading, the error message is arranged, to institute
After some error messages are arranged, asynchronous upload is carried out, asynchronous upload is not take up self space, guarantees stability, and export
Data.
Further, the script error book of final entry method based on educational system, wherein before the step S1
Include:
S0. browser information is obtained, judges browser compatibility, and defines the association content of error message.
The method of the invention judges described clear it is also preferable to include the information for obtaining browser before the step S1
It lookes at the compatibility of device, and defines the association content of error message, pre-define the association content of different error messages, obtaining
When taking error message, facilitate association content according to the pre-stored data, searches root.
Further, the script error book of final entry method based on educational system, wherein the error message point
Class includes: system mistake, syntax error, type error.
The method of the invention, the classification of the error message include system mistake, syntax error, type error is
Mistake caused by system itself, the syntax error that text occurs, parameter type mistake are classified according to different mistakes, under can suiting the medicine to the illness
Medicine is checked in time.
Further, the script error book of final entry method based on educational system, wherein the error message
Association content include: error message, mistake source file, the position of mistake, mistake call stack.
Further, the script error book of final entry method based on educational system, as shown in Fig. 2, being the step
The flow chart of rapid S3, wherein the step S3 includes:
S301. the map packet of the source file information of read error information, inquiry error whether there is, and there is no then records should
Error message;
S302. in the presence of the map packet of mistake, the ranks coordinate of the map packet misregistration of source file is read, obtains mistake
Accurate location;
S303. judge whether the call stack of the mistake of the accurate location terminates, when no, read again the source file of mistake
Information, until the call stack of mistake terminates.
The method of the invention, the association content of the error message preferably include error message, mistake source file, mistake
Position, mistake call stack.By being associated with content, in the source file information of read error information, the map packet of inquiry error
It whether there is, that is, in pre-stored corresponding relationship, if having the wrong information content, if not having, show that the mistake is believed
Breath is newly Unrecorded, therefore, records the error message, in the presence of the map packet of mistake, shows that the error message is corresponding with
Source file can find it and be associated with content, therefore, read the ranks coordinate of source file map packet misregistration, to obtain mistake
Accurate location, then pass through the mistake of the accurate location, judge whether call stack terminates, terminates, then the mistake is recorded, if not tying
Beam then reads again the source file information of mistake, until the call stack of mistake terminates, misregistration information.
Further, the invention also discloses a kind of electronic equipment 10, as shown in figure 3, being the structure of the electronic equipment
Schematic diagram, wherein including processor 110, it is adapted for carrying out each instruction, and
Equipment 120 is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor 110:
Event monitoring is carried out to document, captures global error, read error information;
Classify to error message;
Source file reading is carried out to classified error message, arranges error message, carry out asynchronous upload and exports data.
The processor 110 can for general processor, digital signal processor (DSP), specific integrated circuit (ASIC),
Field programmable gate array (FPGA), single-chip microcontroller, ARM (Acorn RISC Machine) or other programmable logic device are divided
Any combination of vertical door or transistor logic, discrete hardware component or these components.In addition, processor can also be any
Conventional processors, microprocessor or state machine.Processor also may be implemented as calculating the combination of equipment, for example, DSP and Wei Chu
Manage combination, multi-microprocessor, one or more microprocessors combination DSP core, any other this configuration of device.
It stores equipment 120 and is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software
Program, non-volatile computer executable program and module, such as the corresponding journey of educational interaction method in the embodiment of the present invention
Sequence instruction.Processor is stored in non-volatile software program, instruction and unit in storage equipment by operation, thereby executing
The various function application and data processing of educational interaction method, i.e. realization above method embodiment.
The electronic equipment includes but is not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data
Communication is main target.This Terminal Type includes: intelligent electronic device (such as iPhone), multimedia electronic equipment, functional electric
Sub- equipment and low-end electronic equipment etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function
Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play video content, generally also have mobile Internet access spy
Property.Such equipment includes: video player, handheld device and intelligent toy and portable car-mounted navigation equipment.
(4) other have the electronic equipment for touching screen.
Electronic equipment of the present invention, for conveniently finding out type of error etc., and recorded in script error, side
Just it is safeguarded, specifically, carrying out event monitoring to document, when getting mistake, error trap is carried out to the overall situation, and read
Error message is taken, is classified to error message, the corresponding wrong source file of different mistakes is also different, according to classified mistake
False information carries out the reading of source file, arranges the error message, after arranging to all error messages, carries out on asynchronous
It passes, asynchronous upload, is not take up self space, guarantee stability, and export data.
Further, the electronic equipment, wherein the processor 110 is also used to execute:
Browser information is obtained, judges browser compatibility, and define the association content of error message.
Further, the electronic equipment, wherein error message classification include: system mistake, syntax error,
Type error.
Further, the electronic equipment, wherein the association content of the error message includes: error message, mistake
Source file, the position of mistake, mistake call stack.
Further, the electronic equipment, wherein the processor 110 is also used to execute:
The map packet of the source file information of read error information, inquiry error whether there is, and there is no then record mistake letter
Breath;
In the presence of the map packet of mistake, the ranks coordinate of the map packet misregistration of source file is read, obtains the standard of mistake
True position;
Judge whether the call stack of the mistake of the accurate location terminates, when no, read again the source file information of mistake,
Until the call stack of mistake terminates.
The association content of the error message preferably include error message, mistake source file, the position of mistake, mistake tune
Use stack.By being associated with content, in the source file information of read error information, the map packet of inquiry error whether there is, that is,
In pre-stored corresponding relationship, if having the wrong information content, if not having, show that the error message does not record for new
, therefore, the error message is recorded, in the presence of the map packet of mistake, shows that the error message is corresponding with source file, can look for
It is associated with content to it, therefore, reads the ranks coordinate of source file map packet misregistration, to obtain the accurate location of mistake, then is led to
The mistake for crossing the accurate location, judges whether call stack terminates, and terminates, then records the mistake, if being not finished, read again mistake
Source file information accidentally, until the call stack of mistake terminates, misregistration information.
In conclusion the script error book of final entry method and electronics that the invention discloses a kind of based on educational system are set
It is standby, wherein the method includes the steps: A. carries out event monitoring to document, captures global error, read error information;B. right
Error message is classified;C. source file reading is carried out to classified error message, arranges error message, carry out asynchronous upload
And export data;The scheme through the invention adds global monitoring event, after capturing mistake, sends out after taxonomic revision record
It is sent to backstage and records, after the unified capture of mistake, after carrying out taxonomic revision, the information of mistake can be improved.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention
Protect range.
Claims (10)
1. a kind of script error book of final entry method based on educational system, which is characterized in that comprising steps of
A. event monitoring is carried out to document, captures global error, read error information;
B. classify to error message;
C. source file reading is carried out to classified error message, arranges error message, carry out asynchronous upload and export data.
2. the script error book of final entry method according to claim 1 based on educational system, which is characterized in that the step
Include: before rapid A
S. browser information is obtained, judges browser compatibility, and defines the association content of error message.
3. the script error book of final entry method according to claim 1 based on educational system, which is characterized in that the mistake
False information classification includes: system mistake, syntax error, type error.
4. the script error book of final entry method according to claim 2 based on educational system, which is characterized in that the mistake
The association content of false information include: error message, mistake source file, the position of mistake, mistake call stack.
5. the script error book of final entry method according to claim 2 based on educational system, which is characterized in that the step
Suddenly C includes:
C1. the map packet of the source file information of read error information, inquiry error whether there is, and there is no then record mistake letter
Breath;
C2. in the presence of the map packet of mistake, the ranks coordinate of the map packet misregistration of source file is read, obtains the accurate of mistake
Position;
C3. judge whether the call stack of the mistake of the accurate location terminates, when no, read again the source file information of mistake,
Until the call stack of mistake terminates.
6. a kind of electronic equipment, which is characterized in that including processor, it is adapted for carrying out each instruction, and
Equipment is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor:
Event monitoring is carried out to document, captures global error, read error information;
Classify to error message;
Source file reading is carried out to classified error message, arranges error message, carry out asynchronous upload and exports data.
7. electronic equipment according to claim 6, which is characterized in that the processor is also used to execute:
Browser information is obtained, judges browser compatibility, and define the association content of error message.
8. electronic equipment according to claim 6, which is characterized in that the error message classification includes: system mistake, language
Method mistake, type error.
9. electronic equipment according to claim 7, which is characterized in that the association content of the error message includes: mistake
Information, mistake source file, the position of mistake, mistake call stack.
10. electronic equipment according to claim 7, which is characterized in that the processor is also used to execute:
The map packet of the source file information of read error information, inquiry error whether there is, and there is no then record the error message;
In the presence of the map packet of mistake, the ranks coordinate of the map packet misregistration of source file is read, obtains the accurate position of mistake
It sets;
Judge whether the call stack of the mistake of the accurate location terminates, when no, reads again the source file information of mistake, until
The call stack of mistake terminates.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810969671.7A CN109409399A (en) | 2018-08-23 | 2018-08-23 | A kind of script error book of final entry method and electronic equipment based on educational system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810969671.7A CN109409399A (en) | 2018-08-23 | 2018-08-23 | A kind of script error book of final entry method and electronic equipment based on educational system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109409399A true CN109409399A (en) | 2019-03-01 |
Family
ID=65464466
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810969671.7A Pending CN109409399A (en) | 2018-08-23 | 2018-08-23 | A kind of script error book of final entry method and electronic equipment based on educational system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109409399A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102262584A (en) * | 2010-05-24 | 2011-11-30 | 北大方正集团有限公司 | Method and device for checking program operation error |
CN102902619A (en) * | 2011-07-29 | 2013-01-30 | 阿里巴巴集团控股有限公司 | Method and device for regression testing of Web application programs |
CN104182327A (en) * | 2013-05-23 | 2014-12-03 | 携程计算机技术(上海)有限公司 | Client error log collecting method and client error log collecting system |
CN105468511A (en) * | 2014-09-05 | 2016-04-06 | 阿里巴巴集团控股有限公司 | Web page script error positioning method and apparatus |
CN106874137A (en) * | 2017-03-16 | 2017-06-20 | 深圳市茁壮网络股份有限公司 | A kind of JS engine fault-tolerants method and apparatus |
CN107729232A (en) * | 2017-09-27 | 2018-02-23 | 深圳市赛亿科技开发有限公司 | A kind of script debugging method and device based on JS |
-
2018
- 2018-08-23 CN CN201810969671.7A patent/CN109409399A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102262584A (en) * | 2010-05-24 | 2011-11-30 | 北大方正集团有限公司 | Method and device for checking program operation error |
CN102902619A (en) * | 2011-07-29 | 2013-01-30 | 阿里巴巴集团控股有限公司 | Method and device for regression testing of Web application programs |
CN104182327A (en) * | 2013-05-23 | 2014-12-03 | 携程计算机技术(上海)有限公司 | Client error log collecting method and client error log collecting system |
CN105468511A (en) * | 2014-09-05 | 2016-04-06 | 阿里巴巴集团控股有限公司 | Web page script error positioning method and apparatus |
CN106874137A (en) * | 2017-03-16 | 2017-06-20 | 深圳市茁壮网络股份有限公司 | A kind of JS engine fault-tolerants method and apparatus |
CN107729232A (en) * | 2017-09-27 | 2018-02-23 | 深圳市赛亿科技开发有限公司 | A kind of script debugging method and device based on JS |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107025165B (en) | Game automation test method and related device | |
CN107256707B (en) | Voice recognition method, system and terminal equipment | |
CN104185141B (en) | The detecting system and method for user area residence time based on Bluetooth beacon equipment | |
CN106104528A (en) | Begin a project for screen and select and the method based on model of disambiguation | |
CN111782492B (en) | Page first screen loading duration testing method and device, computer equipment and medium | |
CN108052442A (en) | A kind of engine test method, terminal and computer readable storage medium | |
CN107544734A (en) | A kind of information displaying method, device and storage medium | |
CN106161133B (en) | Method and device for testing webpage loading time | |
US20130147704A1 (en) | Electronic device providing shake gesture identification and method | |
CN110162525A (en) | Read/write conflict solution, device and storage medium based on B+ tree | |
CN111552633A (en) | Interface abnormal call testing method and device, computer equipment and storage medium | |
CN108491326A (en) | Behavioral test recombination method, device and storage medium | |
CN110795175A (en) | Method and device for analog control of intelligent terminal and intelligent terminal | |
CN104866416A (en) | Method and device for performance analysis of application program | |
US10691717B2 (en) | Method and apparatus for managing data | |
CN105468511A (en) | Web page script error positioning method and apparatus | |
CN104268472A (en) | Method and device for restoring address of function modified by third party dynamic link library | |
CN111899859A (en) | Surgical instrument counting method and device | |
CN108986809B (en) | Portable equipment and awakening method and device thereof | |
CN103647761B (en) | Method and device for marking audio record, and terminal, server and system | |
CN111460178A (en) | Knowledge graph-based block chain visualization system | |
US9348999B2 (en) | User terminal, reliability management server, and method and program for preventing unauthorized remote operation | |
CN112671878B (en) | Block chain information subscription method, device, server and storage medium | |
CN110472162A (en) | Appraisal procedure, system, terminal and readable storage medium storing program for executing | |
CN110008446A (en) | The method and electronic equipment that a kind of language based on programming converts form document |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190301 |
|
RJ01 | Rejection of invention patent application after publication |