"No Symbolic Information" Debugging QuickBasic with CodeView (32498)



The information in this article applies to:

  • Microsoft QuickBASIC 4.0
  • Microsoft QuickBASIC 4.0b
  • Microsoft QuickBASIC 4.5
  • Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
  • Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
  • Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
  • Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.1

This article was previously published under Q32498

SUMMARY

To debug a QuickBasic or Basic compiler program with the CodeView debugger, the following is required:

  1. Save the Basic (.BAS) source file in Text format before compiling.
  2. Compile the program with the /Zi option and link with the /CO option as follows:

    BC test.bas /Zi;

    LINK /CO test.obj;

  3. Make sure the Basic (.BAS) file is in the current directory when CodeView is invoked.
This information applies to QuickBasic versions 4.00, 4.00b, and 4.50, to Microsoft Basic Compiler version 6.00 and 6.00b for MS-DOS and MS OS/2, and to Microsoft Basic Professional Development System (PDS) versions 7.00 and 7.10 for MS-DOS and MS OS/2.

MORE INFORMATION

If one of the above steps is omitted, CodeView does not allow you to view your Basic source code and issues the error message "No Symbolic Information."

Following the above steps allows CodeView to find the proper symbolic information and allows you to do a source-level tracing of your Basic program.

You must use the Microsoft LINK.EXE program that comes with your copy of QuickBasic or Basic compiler (or a later version of LINK.EXE), or else you may get the "No Symbolic Information" error from CodeView. For example, if you use /CO with the older LINK.EXE that comes with MS-DOS Version 3.21, the linker gives no error (even though it doesn't support /CO), but CodeView gives you the "No Symbolic Information" error.

Modification Type:MinorLast Reviewed:1/9/2003
Keywords:KB32498