33
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
A step is an instruction to move the
to another line in source
code. Stepping allows you to execute your code in a very controlled way, and work
your way along the program in a pace which you can analyze and understand.
Step Into: Steps through your code line by line. When the program
pointer reaches a procedure call, you would actually see it step into this
procedure (hence, the name). You could then see the inner workings of
this procedure as it is being executed, line by line.
Step Over: Steps through your code line by line. When the program
pointer reaches a procedure call, it executes this entire procedure, but
just does it all at once, and stops at the next line after the procedure
call. This is useful when you want to debug a body of code which
contains a call to a complex or lengthy procedure, which you do not want
to debug right now.
Step Out: If you are currently stepping through a function and wish to
exit it while you're still in the middle, use Step Out. This would bring you
to the line immediately following the line which called the function you
were in. This option is disabled when you cannot step out of the current
function (i.e, when your other function calls it -- such as in the case of
an
).
Run to Cursor: The cursor, in this case, is the text insertion point. The
little blinking black line. You can place the cursor anywhere within the
body of your program and have the program execute until it reaches that
point. When, and if, that point is reached, the program pointer would
display.
Jump to Cursor: This command makes the program pointer
unconditionally move to the point where the cursor is. It will just jump
there, possibly skipping the execution of some code. This is explicit
control of program flow.
4.1.8.6
The Watch
The watch is a facility which allows you to inspect and change the current value of
variables and object properties. You can only use this facility when you are in
debug mode and when the program execution is stopped. TIDE is unable to fetch
variable values while the Virtual Machine is running. Depending on the scope of the
variable, there may be
as to when you can inspect this
variable's value.
The watch updates variable values by reading them from the target every time the
Virtual Machine is stopped. If any item on the list changed its value since the
previous fetch, this item will be displayed in red.
Watch facility may be accessed by three different ways:
The Watch Pane
The watch can be toggled by View > Watch. It looks like this:
30
8
37