CAPTURING TELEMETRY DATA BY DYNAMIC LANGUAGE ENGINE
First Claim
1. A method for selectively capturing script code stacks associated with a plurality of exceptions thrown by script code, the method comprising:
- for each of at least one exception thrown by the script code for which the script code does not handle the exception, performing the following;
an act of the script engine capturing a script code stack representing at least a portion of a script stack associated with the script code when the exception was thrown, wherein the act of capturing occurs in a host-accessible manner in which a host that hosts the script engine may access the captured script code stack;
an act of the script engine completing unwinding of the script stack after the act of capturing the script code stack; and
an act of the script engine reporting the captured script code stack to a host that hosts the script engine; and
for at least one exception thrown by the script code for which the script code itself handles the exception, an act of abstaining from capturing the script code stack in the host-accessible manner.
2 Assignments
0 Petitions
Accused Products
Abstract
At least one embodiment described herein relates to the selective capturing of script code stacks associated with exceptions thrown by script code. For unhandled exceptions, the script engine 1) captures the script code stack in a host-accessible manner in which a host that hosts the script engine may access the captured script code stack, 2) completes unwinding of the script stack, and 3) reports the captured script code stack to a host that hosts the script engine. For at least one of the handled exceptions thrown by the script code for which the script code itself handles the exception, the script code stack is not captured in the host-accessible manner. Also, the call stack property of an error object is populated at throw time, rather than creation time.
9 Citations
20 Claims
-
1. A method for selectively capturing script code stacks associated with a plurality of exceptions thrown by script code, the method comprising:
-
for each of at least one exception thrown by the script code for which the script code does not handle the exception, performing the following; an act of the script engine capturing a script code stack representing at least a portion of a script stack associated with the script code when the exception was thrown, wherein the act of capturing occurs in a host-accessible manner in which a host that hosts the script engine may access the captured script code stack; an act of the script engine completing unwinding of the script stack after the act of capturing the script code stack; and an act of the script engine reporting the captured script code stack to a host that hosts the script engine; and for at least one exception thrown by the script code for which the script code itself handles the exception, an act of abstaining from capturing the script code stack in the host-accessible manner. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. A computer program product comprising one or more computer-storage media having thereon computer-executable instructions that are structured such that, when executed by one or more processors of a computing system, cause the computing system to operate a script engine that is configured to perform the following:
-
an act of executing user script in which an error object is created that may have an associated unpopulated call stack property; an act of the user script throwing an exception associated with the error object; an act of capturing a script code stack representing at least a portion of a script stack associated with the script code when the exception was thrown; and an act of populating the call stack property of the error object with the captured script code stack. - View Dependent Claims (15, 16, 17, 18, 20)
-
-
19. A computer program product comprising one or more computer-storage media having thereon computer-executable instructions that are structured such that, when executed by one or more processors of a computing system, cause the computing system to operate an environment that comprises
a script engine that A) for each unhandled exception thrown by the script code for which the script code does not handle the exception, 1) capture a script code stack representing at least a portion of a script stack associated with the script code when the exception was thrown, wherein the act of capturing occurs in a host-accessible manner in which a host that hosts the script engine may access the captured script code stack, 2) complete unwinding of the script stack after the script code stack is capture, and 3) report the captured script code stack; - and B) for each handled exception thrown by the script code for which the script code itself handles the exception, an act of abstaining from capturing the script code stack in the host-accessible manner; and
a host configured to
1) receive the captured script code stack, and perform at least one of the following;an act of displaying the captured script code stack to a user. an act of causing the script engine to cease execution of the script code.
- and B) for each handled exception thrown by the script code for which the script code itself handles the exception, an act of abstaining from capturing the script code stack in the host-accessible manner; and
Specification