Debugging Programs

PWB has a variety of resources available for debugging programs. They range from simple assemble-and-link error messages to sophisticated source browsing and source- or assembly-level debugging.

When assembly errors occur, the cursor moves to the line that caused the first error; a brief description of the error appears in the reference bar. Use the Next Error and Previous Error commands in the Search menu to move the cursor to lines where other errors occurred.

To see a complete list of errors, choose the Compile Results command from the View menu. Move the cursor into the Compile Results window and use the Set Error command in the Search menu to select the error under the cursor as the current error. This command synchronizes the source and error windows so the source-code line containing the error appears in the active window.

Use the Microsoft Advisor to display online help about the error. In the Compile Results window, move the cursor to the error number and press F1, or click the number with either mouse key.

PWB incorporates a source-code browser and interfaces with the CodeView debugger. The Browser displays information about function and data relationships. CodeView is a window-oriented symbolic debugger that lets you step through your code and examine variables and data as the program executes.