> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Debugging Functions

> Functions that return information about the search area for debugging purposes

The following functions are only available in the **Search Conditions** section.

These functions can be used for debugging prints. You can run print commands after specifying a set of instructions limiting the search area in order to see the results of these instructions.

| Function                                          | Description                                                                                   |
| :------------------------------------------------ | :-------------------------------------------------------------------------------------------- |
| `FuzzyRect SearchArea()`                          | Created search area - a fuzzy rectangle. Read-only.                                           |
| `RectArray ExcludedRects()`                       | Array of rectangles excluded from the search area. Read-only.                                 |
| `PageArea PageSearchAreaLocal( Int PageNumber )`  | Returns the search area that intersects the given page, in the local coordinates of the page. |
| `PageArea PageSearchAreaGlobal( Int PageNumber )` | Returns the search area that intersects the given page, in global coordinates.                |

## Example

To print the search area of an element:

In the Advanced pre-search relations section, type the following code for the selected element:

```
Print: Str(SearchArea);
```

or equivalent code

```
Print: Str(SearchArea ());
```

The Str function converts the results into string format required for printing.
