Watchpoints Set at Module Level Won't Break in a SUBprogram (61340)
This article was previously published under Q61340
SUMMARY
Watchpoints put on variables (which are set in QuickBasic's Debug
menu) have a local scope. That is, you must reset the watchpoint on a
variable in each SUBprogram or FUNCTION, even if the variable is in a
SHARED or COMMON SHARED statement. This is by design.
If you add a watchpoint in the module-level code of a shared variable,
and a SUBprogram or FUNCTION changes the variable so the watchpoint
should break, the program will not break until the SUBprogram or
FUNCTION returns to the module-level code.
This information applies to the QB.EXE environment in QuickBasic
versions 4.00, 4.00b, and 4.50, and to the QBX.EXE environment of
Microsoft Basic Professional Development System (PDS) version 7.00.
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB61340 |
|