Variable view

Watching variables

In source view, hit F6 (or click the <F6=Variables> button) to go to VARIABLE VIEW screen:

Here you'll see all variables that vWATCH64 could find in your program (see more about choosing variables here). As your program is run, variable values are updated in real time. You'll also see on the top bar the next line of your program that will be run, and on the top right corner you'll see what module is currently being run. From this screen you can use F5, F8 and F9 keys just like you did in source view to run, pause and toggle breakpoints. Also, while program is running, you can pause it by clicking the variable list.

If the next line of code to be run references any variable in the list, that item will be highlighted, as in the example below. The next line to be run is "READ a" and variable 'a' is highlighted (SHARED STRING a = playing with):

While execution is paused you can do the following:

Set a watchpoint

You can tell vWATCH64 to run your program until a variable holds a certain value. To do so, right-click the variable you want to set a watchpoint to and click Set/Edit a watchpoint. In the example below, variable strayDog was chosen:

In the dialog that will show, you can enter an expression to be watched, using relational operators:

Say you want to run your program until variable 'strayDog' is greater than 10. Enter the following:

Variable view will now indicate a watchpoint is set to variable 'strayDog' with a red highlight, similar to a breakpoint in source view:

If your mouse hovers the hightlighted line, you'll see the watchpoint expression that has been set:

Hit F5 and watch as your program runs until the condition is met and then pauses. If you switch to source view (F6), variable view will be automatically triggered when the watchpoint's condition is met and you'll see the variable list again. To continue execution, hit F5. You'll see the following dialog if your watchpoint is still set:

If you click Yes, vWATCH64 will automatically remove the watchpoint and continue with the execution. Clicking No will continue execution and pause it automatically, if the variable value that has a watchpoint set to it hasn't changed.

Edit variable values

You can test different scenarios for your program execution by changing variables values from vWATCH64. To do so, right click a variable and choose Edit variable value:

Then you enter the new value you want to assign to that variable. Notice that your input will not be validated. If you enter a string to a numeric variable, it'll be set to 0, since it'll be assigned the output of the VAL() Qbasic function. Likewise, if you enter a numeric value with decimal places to an integer variable, it'll be rounded automatically.

You can also use Ctrl+V to input values from the clipboard.


While in variable view, both when your program is running and when it's paused, you can search in scope, data types, variable names and variable values. To do so, just start typing. To select a search field, use the TAB key. In the example below, we searched for the word USED, and all variable names containing it have been instantly filtered:

If you hit TAB, instead of searching in variable names, you can search for scope, data type and values. In the example below, the data types column has been selected, and whatever is typed will be searched in this column.

Next: Command line