13.07.2015 Views

Using Caché Studio - InterSystems Documentation

Using Caché Studio - InterSystems Documentation

Using Caché Studio - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Using</strong> the <strong>Studio</strong> DebuggerRun toCursorStarts execution of the target process and stops when it reaches the line onwhich the cursor is currently located.This is equivalent to setting a breakpointat the current line in the editor window, executing the Go command, andclearing the breakpoint when the program halts.16.4 Watch WindowThe Watch Window displays a table in which you can watch the values of variables and simpleexpressions. All variables and expressions listed in the Watch Window are evaluated after eachdebugger operation (such as Step Over) and their resulting values are displayed in the second columnof the Watch Window. If the value of a variable or expression changes after a debugger operation, itis displayed in red. If a variable in the watch list is undefined when it is evaluated then the value isdisplayed as: . Similarly, any expression whose result is an error displays an errormessage for its value.To add a variable or expression to the Watch Window, double-click an empty cell in the first columnand enter the variable or expression. Alternatively you can use your mouse to highlight text in an editorwindow, drag it over an empty cell in the Watch Window and drop it. You can edit the contents of theWatch Window by double-clicking on a variable or expression and typing.The following are examples of variables and expressions you could enter into the Watch Window:• a• a + 10• a(10,10)• $L(a)• person.NameYou can also change the value of a variable in the target process by entering a new value in the Valuecolumn of the Watch Window.96 <strong>Using</strong> <strong>Caché</strong> <strong>Studio</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!