The incremental search command searches a window for a string. In the source pane, the search starts at the current line pointer while in other windows the search starts at the beginning or the end of the text currently displayed. To place the debugger in search mode, type Ctrl+f for forward search or Ctrl+b for backward search. The message "SSrch" (Source pane Search) appears on the left side of the status bar:
While in search mode, as text is typed, the pattern is matched in the window searched, and the first occurrence of the match is highlighted. To find the next or previous match, type Ctrl+f or Ctrl+b. The search wraps around the entire buffer of displayed text. When it reaches the end or the beginning of the window buffer, the debugger beeps to indicate it is about to wrap.
To end the search, press Enter or click the mouse. The string then becomes the current selection. You can control case sensitivity with the chgcase command. See chgcase. The incremental search key strokes include:
this is a string search. |
Now, start a search through this string by typing Ctrl+f and the first character of the search, say letter `i'. Result: the character `i' in the word `this' is highlighted.
If you now type `s', the two characters `i' and `s' in `this' are highlighted.
To jump to the next occurrence of the pattern `is', press Ctrl+f again. This puts the selection on `is' in the string.
To search next for the pattern `in', press Backspace to reset the search string to `i'. Now, type `n'. The `i' and `n' in `string' are highlighted.
To terminate the search, press Enter. This leaves you with the current selection.