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;
sending at least one of the one or more actions to a second code module in the computing device upon 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; and
generating a set of one or more debug messages corresponding to the flags that are set.
2 Assignments
0 Petitions
Accused Products
Abstract
Techniques for automatically triggering one or more debug sessions are described herein. In one embodiment of the invention, at a first code module in a computing device, a detected event is determined to constitute 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. One or more actions for that automatic start debug session condition is determined, wherein each action includes properties of a different one of the one or more debug sessions. At least one of the one or more actions 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 one or more debug messages corresponding to the flags that are set are generated. Other methods and apparatuses are also described.
55 Citations
23 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; sending at least one of the one or more actions to a second code module in the computing device upon 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; and generating a set of one or more debug messages corresponding to the flags that are set. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computing device configured to automatically control debugging, comprising:
-
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 to, 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, an automatic start debug session code block to, send at least one of the one or more actions to a different code module upon 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 to, check the flags in the debug library for each action to determine whether to generate a set of one or more debug messages, and generate the set of debug messages corresponding to the flags that are set. - View Dependent Claims (9, 10, 11, 12, 13, 14, 15, 16)
-
-
17. A 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; sending at least one of the one or more actions to a second code module in the computing device upon 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; and generating a set of one or more debug messages corresponding to the flags that are set. - View Dependent Claims (18, 19, 20, 21, 22, 23)
-
Specification