Microsoft KB Archive/32498

= &quot;No Symbolic Information&quot; Debugging QuickBasic with CodeView =

Article ID: 32498

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft QuickBasic 4.0
 * Microsoft QuickBASIC 4.0b
 * Microsoft QuickBasic 4.5 for MS-DOS
 * Microsoft BASIC Compiler 6.0
 * Microsoft BASIC Compiler 6.0b
 * Microsoft BASIC Professional Development System 7.0
 * Microsoft BASIC Professional Development System 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:

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

BC test.bas /Zi;

LINK /CO test.obj;

 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 &quot;No Symbolic Information.&quot;

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 &quot;No Symbolic Information&quot; 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 &quot;No Symbolic Information&quot; error.

Additional query words: QuickBas BasicCom

Keywords: KB32498

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.