10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

How Debugging an Application WorksWhen an ArrayObject has been expanded, an array type node follows thearrayobject class and its attributes. This node displays the class name of therow objects and the number of rows in the array. For an array of stringobjectwith 16 rows, the array type node is displayed as follows:from stringobject[], 16 rowsWhen the array type node is expanded, the array row objects are displayed forthe array.For large arrays, the array row objects are displayed in groups of rows undergroup headings. Each heading displays the range of rows in its group. A groupheading for rows 1 through 20 of an array has the following format:arrayname[1] to arrayname[20]arraynameRepresents the name of the arrayFor the settings that define a large array and the size of the groups for thearray, see Select Array Display Settings.Write Expanded Values to the Trace WindowRather than expanding an object in the Debugger window, you can write theexpanded values to the Trace window.To write expanded values to the Trace window1. Select an object in the script display area or the data display area.2. Click Tools, Values, Expand in Trace Window, or right-click the highlightedobject and click Expand in Trace Window from the pop-up menu.The Number of Levels dialog appears, which lets you select how manyindent levels to display. If you select the Prompt to Continue Outputoption, a slider field appears, letting you select the number of rows to beexamined before you are prompted to continue or cancel.3. Click OK.The Debugger updates the values of the examined expressions in the datadisplay area when the executing application updates them or when you assignnew values in the Debugger window.If the execution of a statement makes an expression invalid, the displayindicates that this is the case. For example, suppose you have examined theexpression "arrayname[7].num." If a statement that clears the array isexecuted, the expression is no longer valid, as indicated by the display.Debugging Your Application 475

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

Saved successfully!

Ooh no, something went wrong!