Claims
- 1. A method of debugging code, comprising:
executing the code during a debugging session; giving control to a debugging program when a debug event occurs; displaying a user interface screen of the debugging program, wherein the user interface screen comprises a source code panel containing code; and in response to a user event, configuring the user interface screen with viewable attributes indicative of each instance of a variable in at least the code displayed in the source code panel.
- 2. The method of claim 1, wherein the user event is a mouse pointer position relative to a statement in the source code panel.
- 3. The method of claim 1, further comprising, in response to the user event, retrieving debug data collected by a compiler, wherein the debug data specifies a location of the variable in the code and is used determine a location of the viewable attributes in the user interface screen.
- 4. The method of claim 1, wherein configuring the user interface screen with the viewable attributes comprises at least one of:
formatting at least one of a scroll bar and a scroll bar puck with a mark indicating a statement in which the variable is declared; and formatting the statement in which the variable is declared to visually distinguish the statement from other statements not containing the variable.
- 5. The method of claim 1, wherein configuring the user interface screen with the viewable attributes comprises at least one of:
formatting at least one of a scroll bar and a scroll bar puck with a mark for each instance of the variable; and formatting each statement containing an instance of the variable to visually distinguish each statement from other statements not containing the variable.
- 6. The method of claim 5, wherein each mark is color-coded to indicate whether the respective instance of the variable is updated or referenced.
- 7. The method of claim 5, wherein each mark is color-coded to indicate whether the respective instance of a immediately next instance of the variable relative to a current stopped position in the execution of the program.
- 8. The method of claim 5, wherein a position of each mark is reflective of a location of the respective instance of the variable in the code.
- 9. A computer readable medium containing a debug program which, when executed, performs an operation comprising:
while executing the code during a debugging session, taking control of the code when a debug event occurs; rendering a debugger user interface screen, wherein the user interface screen comprises a source code panel containing code; and in response to a user event, configuring the user interface screen with viewable attributes indicative of each instance of a variable in at least the code displayed in the source code panel.
- 10. The computer readable medium of claim 9, wherein the user event is a mouse pointer position relative to a statement in the source code panel.
- 11. The computer readable medium of claim 9, further comprising, in response to the user event, retrieving debug data collected by a compiler, wherein the debug data specifies a location of the variable in the code and is used determine a location of the viewable attributes in the user interface screen.
- 12. The computer readable medium of claim 9, wherein configuring the user interface screen with the viewable attributes comprises at least one of:
formatting at least one of a scroll bar and a scroll bar puck with a mark indicating a statement in which the variable is declared; and formatting the statement in which the variable is declared to visually distinguish the statement from other statements not containing the variable.
- 13. The computer readable medium of claim 9, wherein configuring the user interface screen with the viewable attributes comprises at least one of:
formatting at least one of a scroll bar and a scroll bar puck with a mark for each instance of the variable; and formatting each statement containing an instance of the variable to visually distinguish each statement from other statements not containing the variable.
- 14. The computer readable medium of claim 13, wherein each mark is color-coded to indicate whether the respective instance of the variable is updated or referenced.
- 15. The computer readable medium of claim 13, wherein each mark is color-coded to indicate whether the respective instance of a immediately next instance of the variable relative to a current stopped position in the execution of the program.
- 16. The computer readable medium of claim 13, wherein a position of each mark is reflective of a location of the respective instance of the variable in the code.
- 17. A computer, comprising (i) a display device, (ii) a memory containing a compiler and a debug program and (iii) a processor which at least:
(a) executes the compiler to perform a compilation process, comprising:
determining each instance of each variable in computer code; and updating a debug data record each instance of each variable; and (b) executes the debug program to perform a debugging process, comprising:
in response to an event, rendering a user interface screen for display on the display device, the user interface screen comprising (i) a source code panel containing code which includes at least one instance of a variable and (ii) viewable attributes indicative of each instance of the variable in at least the code displayed in the user interface screen.
- 18. The computer of claim 17, wherein the event is a mouse pointer position relative to a statement in the source code panel.
- 19. The computer of claim 17, further comprising, in response to the event, retrieving debug data collected by a compiler, wherein the debug data specifies a location of the variable in the code and is used determine a location of the viewable attributes in the user interface screen.
- 20. The computer of claim 17, wherein rendering the user interface screen with the viewable attributes comprises at least one of:
formatting at least one of a scroll bar and a scroll bar puck with a mark indicating a statement in which the variable is declared; and formatting the statement in which the variable is declared to visually distinguish the statement from other statements not containing the variable.
- 21. The computer of claim 17, wherein configuring the user interface screen with the viewable attributes comprises at least one of:
formatting at least one of a scroll bar and a scroll bar puck with a mark for each instance of the variable; and formatting each statement containing an instance of the variable to visually distinguish each statement from other statements not containing the variable.
- 22. The computer of claim 21, wherein each mark is color-coded to indicate whether the respective instance of the variable is updated or referenced.
- 23. The computer of claim 21, wherein each mark is color-coded to indicate whether the respective instance of a immediately next instance of the variable relative to a current stopped position in the execution of the program.
- 24. The computer of claim 21, wherein a position of each mark is reflective of a location of the respective instance of the variable in the code.
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application is related to U.S. Ser. No. ______, filed on even date herewith by Cary Lee Bates et al., and entitled “DESCRIPTIVE VARIABLES WHILE DEBUGGING” (Docket No. ROC920020011US1)