Browse Prior Art Database

Debugging Programs with the Title Bar

IP.com Disclosure Number: IPCOM000109751D
Original Publication Date: 1992-Sep-01
Included in the Prior Art Database: 2005-Mar-24
Document File: 1 page(s) / 24K

Publishing Venue

IBM

Related People

Boeving, D: AUTHOR [+3]

Abstract

This article describes a simple method of displaying variable values while debugging a Presentation Manager* (PM) program. The title bar of the application being developed is used to find defects in the program logic.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 100% of the total text.

Debugging Programs with the Title Bar

       This article describes a simple method of displaying
variable values while debugging a Presentation Manager* (PM) program.
The title bar of the application being developed is used to find
defects in the program logic.

      During the debugging phase of a non-PM application, programmers
display values of variables to the screen.  In the C programming
language, the printf() function is normally used for this purpose.
This C function, however, does not work well in the graphical
environment of the Presentation Manager.

      A simple solution to this problem is to use the C language
sprintf() function to create a string to be displayed in the title
bar of the application.  This formatted string can contain
information that is not easily obtained from a debugger such as
CodeView.  For example, mouse move coordinates can be easily
displayed in the title bar.
*  Trademark of IBM Corp.