Method and apparatus for automatic debugging technique
First Claim
1. A computer implemented method for automatically triggering one or more debug sessions, comprising:
- determining, at a first code module in a computing device, a detected event constitutes an automatic start debug session condition, wherein the detected event is an occurrence of significance to the first code module, and wherein the automatic start debug session condition is a set of one or more start criterions of which the detected event is a part;
determining one or more actions for that automatic start debug session condition, wherein each action includes properties of a different one of the one or more debug sessions and at least one of the one or more actions includes at least one stop criterion to automatically stop that corresponding debug session;
sending at least one of the one or more actions to a second code module in the computing device upon automatically determining that the second code module should automatically start at least one debug session;
setting one or more flags according to each action to start the debug session corresponding to each action;
generating a set of one or more debug messages corresponding to the flags that are set; and
for each action including the at least one stop criterion;
determining to automatically stop the debug session that corresponds to that action according to the stop criterion, andresetting the flags that correspond to that action.
2 Assignments
0 Petitions
Accused Products
Abstract
A first code module in a computing device detects an event that constitutes an automatic start debug session condition. The detected event is an occurrence of significance to the first code module and the condition is a set of one or more start criterions of which the detected event is a part. One or more actions for that condition are determined, wherein each action includes properties of a different debug session. At least one of the action(s) are sent to a second code module in the computing device upon determining that the second code module should automatically start at least one debug session. One or more debug flags are set according to each action to start the debug session corresponding to each action and a set of debug messages corresponding to the flags that are set are generated.
18 Citations
20 Claims
-
1. A computer implemented method for automatically triggering one or more debug sessions, comprising:
-
determining, at a first code module in a computing device, a detected event constitutes an automatic start debug session condition, wherein the detected event is an occurrence of significance to the first code module, and wherein the automatic start debug session condition is a set of one or more start criterions of which the detected event is a part; determining one or more actions for that automatic start debug session condition, wherein each action includes properties of a different one of the one or more debug sessions and at least one of the one or more actions includes at least one stop criterion to automatically stop that corresponding debug session; sending at least one of the one or more actions to a second code module in the computing device upon automatically determining that the second code module should automatically start at least one debug session; setting one or more flags according to each action to start the debug session corresponding to each action; generating a set of one or more debug messages corresponding to the flags that are set; and
for each action including the at least one stop criterion;determining to automatically stop the debug session that corresponds to that action according to the stop criterion, and resetting the flags that correspond to that action. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computing device configured to automatically control debugging, comprising:
-
a processor; and a memory storing a debug library and one or more code modules, each code module including, one or more automatic start debug session detection code blocks each of which is configured to, when executed by the processor, cause a determination that a detected event constitutes an automatic start debug session condition, wherein the detected event is an occurrence of significance to the code module, and wherein the automatic start debug session condition is a set of one or more start criterions of which the detected event is a part, and cause a determination of one or more actions for that automatic start debug session condition, wherein each action defines properties of a debug session and at least one of the one or more actions includes at least one stop criterion to automatically stop the debug session, an automatic start debug session code block that is configured to, when executed by the processor, send at least one of the one or more actions to a different code module upon automatically determining that the different code module should automatically start at least one debug session, and set one or more flags in the debug library according to each action to start the debug session corresponding to each action, one or more debug message generation code blocks, each debug message generation code block is configured to, when executed by the processor, check the flags in the debug library for each action to determine whether to generate a set of one or more debug messages, generate the set of debug messages corresponding to the flags that are set, and for each of the actions including at least one stop criterion, to automatically stop the debug session that corresponds to the action according to the stop criterion, wherein stopping that debug session includes resetting the one or more flag in the debug library that correspond to that action. - View Dependent Claims (8, 9, 10, 11, 12, 13, 14)
-
-
15. A non-transitory tangible machine-readable medium that provides instructions that, if executed by a processor, will cause said processor to perform operations for automatically triggering one or more debug sessions, comprising:
-
determining, at a first code module in a computing device, a detected event constitutes an automatic start debug session condition, wherein the detected event is an occurrence of significance to the first code module, and wherein the automatic start debug session condition is a set of one or more start criterions of which the detected event is a part; determining one or more actions for that automatic start debug session condition, wherein each action includes properties of a different one of the one or more debug sessions and at least one of the one or more actions includes at least one stop criterion to automatically stop that corresponding debug session; sending at least one of the one or more actions to a second code module in the computing device upon automatically determining that the second code module should automatically start at least one debug session; setting one or more flags according to each action to start the debug session corresponding to each action; generating a set of one or more debug messages corresponding to the flags that are set; and for each action including the at least one stop criterion; determining to automatically stop the debug session that corresponds to that action according to the stop criterion, and resetting the flags that correspond to that action. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification