Condividi tramite


How to: View and Save Build Messages

When you build a project, application, or dynamic-link library, Visual FoxPro includes build status and error messages in an error file, which is a text file with the .err file name extension, as they occur during the build process. The .err file has the same base name as your project and is created in the current directory. When you compile or recompile a project, application, or dynamic-link library, compile messages are also included in the same .err file.

If the build process is interrupted, you can open the .err file to review these messages. You can also select the Display Errors option in the Build Options dialog box to display an editing window for the .err file after the build process completes so you can review any errors.

Note

If no errors occur during the build, the .err file is removed.

During the build process, build status messages appear in the status bar. After the build process completes, the number of build errors appear in the status bar.

To display or view the error file

  1. Build the project, application, or dynamic-link library file by following the steps in How to: Test a Project or How to: Build Applications.

  2. To display the error file automatically after the build process completes, when the Build Options dialog box is open, select the Display Errors check box.

    -OR-

    To view the error file after the build process completes, on the Project menu, choose Errors.

For more information, see Build Options Dialog Box.

You can also specify whether to include compile messages by using the SET LOGERRORS command. For more information, see SET LOGERRORS Command.

You can also view and save build status messages that appear in the Debug Output window when it is open in the Debugger. For more information, see Debug Output Window and Debugger Window.

To include compile error messages in the error file

  1. Build the project, application, or dynamic-link library file by following the steps in How to: Test a Project or How to: Build Applications, respectively.

  2. In the Build Options dialog box, select the Recompile All Files check box.

See Also

Other Resources

Testing and Debugging Applications