KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q35354: QB.EXE Single Step Is Not Reliable with $INCLUDE Lines

Article: Q35354
Product(s): See article
Version(s): 4.00 4.00b
Operating System(s): MS-DOS
Keyword(s): ENDUSER | buglist4.00 buglist4.00b fixlist4.50 | mspl13_basic
Last Modified: 8-DEC-1989

When using the F8 key in the QuickBASIC editor to single step through
a program that has included lines, the current line is not always what
it should be. QuickBASIC will not single step through the second
include file.

Microsoft has confirmed this to be a problem in Microsoft QuickBASIC
Versions 4.00 and 4.00b and in the QB.EXE editor that comes with the
Microsoft BASIC Compiler Versions 6.00 and 6.00b for MS-DOS and MS
OS/2 (buglist6.00, buglist6.00b). This problem was corrected in
QuickBasic Version 4.50 and in QBX.EXE of the Microsoft BASIC Compiler
Version 7.00 (fixlist7.00).

The following program can be used to demonstrate this problem:

' Include file INC1.H:
  GOTO 900

' Include file INC2.H:
  900 PRINT "At 900"
  905 PRINT "At 905"
  908 END

' QuickBASIC program INCTEST.BAS:
  REM $INCLUDE: 'INC1.H'
  REM $INCLUDE: 'INC2.H'

To reproduce the problem using the above program, do the following:

1. Choose the Included Lines option on the View menu.

2. Choose the Restart option on the Run menu.

3. Press F8 to single step.

The current line is at 908, not at 900 as expected.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.