/ subcommand for dbx: Search forward for a pattern

Format

/ [RegularExpression]

Description

The / subcommand searches forward in the current source file for the pattern specified by the RegularExpression argument. Entering the / subcommand with no arguments causes dbx to search forward for the previous regular expression.

Usage notes

The / subcommand can be run only while the dbx debug program is running.

Examples

  1. To search forward in the current source file for the number 12, enter:
    / 12
  2. To repeat the previous search, enter:
    /

Related information

The ? (search) subcommand.