Claims
- 1. A method of debugging code, comprising:
displaying a user interface screen of a debugging program; and in response to an event, displaying a value of a variable and a comment associated with the variable in the user interface screen in a location other than in an original location of the comment.
- 2. The method of claim 1, wherein the event is a user event.
- 3. The method of claim 1, wherein the user interface screen is a graphical user interface.
- 4. The method of claim 1, further comprising, in response to the event, retrieving the comment from debug data collected by a compiler.
- 5. The method of claim 1, wherein:
the comment associated with the variable comprises at least one of a user-drafted comment embedded in the code being debugged, an external comment retrieved from a data source external to the code being debugged, and a machine-generated comment indicative of a manner in which the variable is used; and displaying the value of the variable and the comment associated with the variable in the user interface screen comprises displaying the value and the comment as fly-over text.
- 6. The method of claim 1, wherein the comment comprises a user-drafted comment embedded in the code being debugged.
- 7. The method of claim 1, wherein the comment comprises an external comment retrieved from a data source external to the code being debugged.
- 8. The method of claim 7, wherein the data source is a database.
- 9. The method of claim 1, wherein the comment comprises a machine-generated comment indicative of a manner in which the variable is used.
- 10. The method of claim 9, wherein the machine-generated comment is indicative that the variable is used as at least one of a global variable, a static variable, an index variable, a return variable, a parameter, in a call and a combination thereof.
- 11. The method of claim 1, wherein displaying the value of the variable and the comment associated with the variable in the user interface screen comprises displaying the value and the comment as fly-over text.
- 12. The method of claim 11, wherein user interface screen comprises a source code panel and wherein the event is a mouse pointer position relative to a statement in the source code panel.
- 13. A computer readable medium containing a debug program which, when executed, performs an operation comprising:
in response to receiving an event configured to cause a value of a variable to be displayed in a debugger user interface screen, outputting user interface content to be displayed in the user interface screen, wherein the user interface content comprises the value of the variable and a comment associated with the variable in the user interface screen in a location other than in an original location of the comment.
- 14. The computer readable medium of claim 13, wherein the event is a user event.
- 15. The computer readable medium of claim 13, further comprising, in response to the event, retrieving the comment from debug data collected by a compiler.
- 16. The computer readable medium of claim 13, wherein:
the comment associated with the variable comprises at least one of a user-drafted comment embedded in the code being debugged, an external comment retrieved from a data source external to the code being debugged, and a machine-generated comment indicative of a manner in which the variable is used; and the user interface content is displayed in the user interface screen as fly-over text.
- 17. The computer readable medium of claim 13, wherein the comment comprises a user-drafted comment embedded in the code being debugged.
- 18. The computer readable medium of claim 13, wherein the comment comprises an external comment retrieved from a data source external to the code being debugged.
- 19. The computer readable medium of claim 18, wherein the data source is a database.
- 20. The computer readable medium of claim 13, wherein the comment comprises a machine-generated comment indicative of a manner in which the variable is used.
- 21. The computer readable medium of claim 20, wherein the machine-generated comment is indicative that the variable is used as at least one of a global variable, a static variable, an index variable, a return variable, a parameter, in a call and a combination thereof.
- 22. The computer readable medium of claim 13, wherein the value of the variable and the comment associated with the variable in the user interface screen are displayed as fly-over text.
- 23. The computer readable medium of claim 22, wherein user interface screen comprises a source code panel and wherein the event is a mouse pointer position relative to a statement in the source code panel.
- 24. A computer, comprising (i) a display, (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 a comment associated with a variable; and updating a debug data record to reflect the comment; and (b) executes the debug program to perform a debugging process, comprising:
in response to an event, rendering a debugger user interface screen to display a value of a variable and a comment associated with the variable in the user interface screen in a location other than in an original location of the comment.
- 25. The computer of claim 24, wherein:
the comment associated with the variable comprises at least one of a user-drafted comment embedded in the code being debugged, an external comment retrieved from a data source external to the code being debugged, and a machine-generated comment indicative of a manner in which the variable is used; and the value of the variable and the comment associated with the variable are displayed in the user interface screen as fly-over text.
- 26. The computer of claim 24, wherein determining the comment associated with the variable comprises determining a manner in which the variable is to be used.
- 27. The computer of claim 24, further comprising a network connection to a storage device comprising a database, the database having a plurality of external comments residing therein; and wherein the comment associated with the variable comprises an external comment retrieved from the database.
- 28. A computer, comprising (i) a display, (ii) a memory containing a debugging program and (iii) a processor which at least executes the debug program to perform a debugging process, comprising:
in response to a user event, rendering a debugger user interface screen to display a value of a variable and a comment associated with the variable in the user interface screen in a location other than in an original location of the comment.
- 29. The computer of claim 28, wherein:
the comment associated with the variable comprises at least one of a user-drafted comment embedded in the code being debugged, an external comment retrieved from a data source external to the code being debugged, and a machine-generated comment indicative of a manner in which the variable is used; and the value of the variable and the comment associated with the variable are displayed in the user interface screen as fly-over text.
- 30. The computer of claim 28, wherein determining the comment associated with the variable comprises determining a manner in which the variable is to be used.
- 31. The computer of claim 28, further comprising a network connection to a storage device comprising a database, the database having a plurality of external comments residing therein; and wherein the comment associated with the variable comprises an external comment retrieved from the database.
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 “DISPLAYING VARIABLE USAGE WHILE DEBUGGING” (Docket No. ROC920020095US1)